Visual programming of dialog boxes is quick and accurate. Use generic variable names so you can reuse your favorite dialogs. You can have as many as 500 controls in a WinBatch dialog. However, too many controls can be confusing. Aim for simple dialogs with a consistent appearance between different ones. |
The WIL Dialog Editor offers quick production of custom dialog boxes for your WinBatch programs. It provides a convenient method of creating dialog box templates for use with the Dialog function. For more information about the Dialog function see the Windows Interface Language help file. Note: See the Windows Interface Language Reference help file for more details on how to use the Dialog function to further customize your dialogs, including adding callback procedures with in subroutines to make your dialogs dynamic. It displays a graphical representation of a dialog box, and allows you to create, modify, and move individual controls which appear in the dialog box. After you have defined your dialog box, the Dialog Editor will generate the appropriate WIL code, which you can save to a file or copy to the Clipboard for pasting into your WIL program. You can include the dialog template code directly in your batch code, or you can use the batch language "Call" command to execute the dialog template script. For example:
Call("SampleDialog.wbt", "")
If you decide to compile the Dialogs .wbt file, you will need to use the compiler option 'Encode for Calls to Exes'. You can then Call the compiled dialogs .WBC file.
Limitations: NT 4.0 limitations: The dialog size may not be properly adjusted to account for multi row menu bar when a menu bar displays enough menu items to cause the menu bar to automatically wrap to a new row. Context menus may not work when associated with a DROPLISTBOX controls.
|
WIL Dialog - Dialog Attributes
|