Jump to content

Extended Message Box - New Version: 2 Aug 18


Recommended Posts

15 hours ago, Melba23 said:

I do not think having a single $hFlag parameter is feasible as the various parameters melded by BitOR used by the OP are split into different parameters across 2 functions (_ExtMsgBox & _ExtMsgBoxSet) and rewriting the UDF to deal with but a single parameter would likely break a lot of existing scripts.

Apologies if my original statement was vague, what I was trying to say was just to add the bit-melded parameter $hFlag as an optional last arg of _ExtMsgBox(), and default it to “”.  That way it shouldn’t break any scripts.

Only in the case of a value being passed would it affect anything, and in such a case it would use similar logic as is in your example script to unmeld the parameters and put the corresponding values in the separate parameters.

That way you could encapsulate the logic of the example script into your UDF.  

I use MsgBox all the time, but like the _Ext better.  If EMB had this MsgBox compatible option argument, I could search and replace all my MsgBox calls with EMB calls without needing anything else.

Anyway, it was just a thought and of course you know better than anyone what is needed by the EMB community.

Code hard, but don’t hard code...

Link to post
Share on other sites
  • Replies 328
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Are you annoyed by the limitations of the standard Windows message dialog created by MsgBox? Would you like to have coloured backgrounds and text? To choose the justification and font? Do yo

Thank you Melba23  I'm very happy with your modifications/improvements And I have secretly  renamed your "ExtMsgBox_Test.au3" to "ExtMsgBox.au3"

GordonShumway, Great! I will release a new version soon. M23

Posted Images

  • Moderators

JockoDundee,

Adding a final "portemanteau" parameter to the function is never going to happen. Given the number of optional parameters that would need to be added to the calling line to arrive at this point, I do not see this as "simplifying" the operation for new users - and experienced ones such as yourself should be able to cope with the UDF as it is currently exists. I think the single "BitOR" parameter for the buttons (and icon) is as far as I am prepared to go.

mike 1950r,

For me there is no such difference in colouring between the standard MsgBox and an ExtMsgBox - I see a single unified background colour. Anyway, there are already several colour options in the UDF and I am not going to add any more.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to post
Share on other sites
3 hours ago, Melba23 said:

For me there is no such difference in colouring between the standard MsgBox and an ExtMsgBox

Here are two screenshots, 1st of ext msgbox 2nd of the system msgbox, just to show the difference in the background.

cheers mike

Bild1.jpg

Bild2.jpg

Link to post
Share on other sites
  • Moderators

mike1950r.

I believed you - but that must be something in your system settings.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to post
Share on other sites
  • Moderators
Posted (edited)

mike1950r,

Same here - must be a graphics card thing. Anyway, what you see is what you get with the UDF - I am not adding any further colour options, sorry.

M23

P.S And I intend to move this whole thread to the main EMB thread soon, so do not be surprised if it apparently vanishes!

Edited by Melba23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to post
Share on other sites
  • 4 weeks later...

Hi!

Just a little feature suggestion: Because we can choose the text of the buttons, it would be nice to be able to stack the buttons vertically to fit some long text.

image.png.fd1820493202f48a6e342c16d9e036a5.png

Being able to set horizontal alignment is also nice.

Thanks :)

Link to post
Share on other sites
  • Moderators

matwachich,

Sorry, but no. The UDF is a replacement for the standard MsgBox with small(ish) button texts. But if you want vertically-stacked buttons, feel free to plunder the code of the UDF to write your own version.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...