[NEW VERSION] 19 Nov 21 ------------------------- Added: The ability to set a specific icon on the dialog titlebar - either globally via a new parameter in _ExtMsgBoxSet or locally via the $vIcon parameter of _ExtMsgBox. [NEW VERSION] 2 Aug 18 ------------------------- Added: When specifying the icon to use, if the $vIcon parameter is set to the name of an ico or exe file, the main icon within will be displayed, but if a trailing "|" followed by the icon index is added to the name, that icon from within the file is used. [NEW VERSION] 22 Mar 18 ------------------------- Changed: • Negative values for timeouts are automatically set to 0 = no timeout • Numeric countdown request in $vIcon, but no timeout = no icon and no error [NEW VERSION] 20 Sep 17 ------------------------- Changed: • Pressing the [SPACE] key will now fire the selected button and not the default button as previously. However, the default button will be automatically focused so an immediate pressing of the [SPACE] key when the dialog appears will have the same effect as before. • The default character for determining a default button within the dialog is now "~" - but this can be changed if required by using a new parameter in _ExtMsgBoxSet. [NEW VERSION] 16 Feb 17 ------------------------- New: EMBs can now show images (32x32 only - just use the full path as the parameter) [BUGFIX VERSION] 9 Aug 16 (exactly 1 year since the last!) ------------------------- Fixed: The UDF depended on all buttons having consecutive ControlIDs - which is not always the case. Code rewritten to remove this requirement. [BUGFIX VERSION] 9 Aug 15 ------------------------- Fixed: Bug introduced in last update which crashed when run on XP - sorry about that. [NEW VERSION] 6 May 15 ----------------------- Changed: If the title is wider than the text (with or without an icon) the EMB will expand to display the title in full - up to the maximum width allowed. [NEW VERSION] 30 Mar 15 ----------------------- Added: A new parameter to the _ExtMsgBox function to allow the dialog to display on secondary displays. The UDF default behaviour prevents simple coordinate errors from making the dialog invisible (the coordinates are adjusted to make sure it appears on the main screen as close as possible to the desired location) which does not allow the dialog to be deliberately positioned off the main display - setting this new parameter allows the dialog to be located at any position. Obviously the user who sets this parameter is now responsible for ensuring that the dialog is visible. [NEW VERSION] 11 Aug 13 ----------------------- Added: - 1. Buttons will now expand to fit the text within them as long as they will still fit within the EMB. Note that all buttons will be set to the same width, so a single long text will expand all buttons. - 2. The user can now determine the max and absolute size of the EMB. The max size determines how far the EMB will expand to accommodate lines of text without wrapping - it also determines the max size for the buttons (see above). The absolute size is there to cater for very long unbroken strings (such as a path) which might be wider than the set max width - the EMB will expand incrementally to this value in an attempt to fit the string. [NEW VERSION] 30 May 13 ----------------------- Added: Three new user-defined options: - 1. If the button text is set to " " (a single space) no buttons will be shown. If this option is chosen then the UDF sets an automatic timeout of 5 secs, unless the user has already set another timeout value. - 2. Just to add to the "no button" option, you can now choose to disable the closure [X] and SysMenu "Close" command. So just add 64 to the $iStyle parameter in _ExtMsgBoxSet and the user has to wait for the EMB to time out! - 3. Finally, I was asked if there could be an option to remove the icon from the titlebar. What I have done is to use the transparent icon from the normal AutoIt set when you add 32 to the _ExtMsgBoxSet $iStyle parameter. This gives a similar visual appearance and the SysMenu is still available on rightclick.[/indent] Changed: As guinness now insists (quite correctly) that we use the proper $MB_ICON* parameter when coding, I have decided to rename the UDF constants which determine the icon to use to prevent confusion. If you used them then this is a scriptbreaking change - but as the name has only changed to $EMB_ICON* it should not be too hard to amend your scripts. [NEW VERSION] 28 Feb 12 ----------------------- The "Do not display again" checkbox text remained in the system default colour (usually black) which meant that it became invisible if the ExtMsgBox had a dark background. Code changed so that the text is now in the same colour as the main text and so always visible when used. Thanks to redia for the report. [NEW VERSION] 26 Dec 11 ----------------------- Added an option to show a "Do not display again" checkbox. If this is checked than the return value is negative allowing you to set a flag within your script. See header for _ExtMsgBoxSet function to see how to add it to the $iStyle parameter - non-scriptbreaking if you do not want to use it. :D Thanks to Allow2010 for the feature request. [NEW VERSION] 16 Aug 11 ----------------------- Tab characters were not properly expanded and so the EMB could be too small to hold all the text. Now by adding 8 to the $iStyle parameter in _ExtMsgBoxSet, the tabs will be expanded and the EMB better sized. As the tabs are expanded to a fixed value of "XXXXXXXX", the EMB may now be slightly too wide, but at least all the text will be visible. All of the work is done by the [topic=114034]StringSize[/topic] UDF - a new version of which has been uploaded today. This a non-scriptbreaking change - if you do not want to expand tabs you need change nothing in your scripts. [NEW VERSION] 8 Feb 11 ---------------------- Added: Countdown option. Seconds to go is displayed in place of an icon - see Test 3 in the example. Some minor code changes. As usual, no need to change anything in your current scripts - just use the new option if you need it [NEW VERSION] 31 Jan 11 ----------------------- Added: - the abilty to keep button font as the default system font rather than using the user-set message font. (Lookat the $iStyle parameter of _ExtMsgBoxSet) - the ability to display icons from .exe and .ico files as well as the default MsgBox ones. (Look at the _ExtMsgBox header) - The ability to go up to a preset absolute width if the message is a very long unbroken string which will not fit in the normal max width. (Look at lines #204-207 of the UDF) Thanks to KaFu there is also a new function to detect the default font which works in all OSs (well XP, Vista and Win7 at least). Plus some minor code changes. Once again, no need to change anything in your current scripts - just use the new abilities if you need them. [NEW VERSION] 3 Dec 10 ---------------------- Added the abilty to turn off the TOPMOST style if required. The _ExtMsgBoxSet function header gives details of how to do this and the example script shows all combinations. If you do not want to change the [i]TOPMOST [/i]setting you need change nothing in your current scripts.