MAKEMSI quickly and reliably creates MSI files in a non-programmatic way
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
[Bottom][Contents][Prev]: Control Removal[Next]: Dynamically Update Dialog Controls
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Tips and Tricks->User Interface Tips->Add Dialog Identification To Titlebar

Add Dialog Identification To Titlebar

Sometimes it can be hard when manipulating the user interface to work out which dialog does what (for example when you'd like to position a new dialog with the "Dialog" command).

The following code shows how all existing dialogs can be tweeked to preceed the existing title with the dialog name in square brackets so that as you move from dialog to dialog the name is readily visible:

#define? UISAMPLE_DIALOGS_ID_IN_TITLE.D  N   ;;In developer mode?
#define? UISAMPLE_DIALOGS_ID_IN_TITLE.P  N   ;;In production mode? - probably not!
#if ['<$UISAMPLE_DIALOGS_ID_IN_TITLE.[MMMODE]>' = 'Y']
    ;--- We wish to add the dialog name to the title ------------------------
    <$Table "Dialog">
        <$Row @Where="" @OK=^? > 0^ *Title=^"[\[]" & <$COLSTR.Dialog.Dialog> & "[\]] - " & <$COLSTR.Dialog.Title>^>
    <$/Table>
#endif

As the above code is already included by "UISAMPLE.MMH" you only need to override the switch, for example "UISAMPLE_DIALOGS_ID_IN_TITLE.D".


Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: Control Removal[Next]: Dynamically Update Dialog Controls


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Saturday May 28 2022 at 3:11pm
Visit MAKEMSI's Home Page
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.