UI_MODELESS_DLG_BOX()
Syntax
UI_MODELESS_DLG_BOX( Title as C, Format as N [, Code as C ] )
|
Argument |
Description |
|
|
Title |
The title of the dialog. The title may also be specified dynamically using the syntax: Title = "@=" + Title_Var_Name. |
|
|
Format |
A series of Xdialog commands that describe the appearance of the dialog box. The Format section has the following structure: Format = <<%dlg%
Ã
|
|
|
Argument |
Description | |
|
<<%dlg% |
The only optional part of this argument is the "dlg" sequence of characters (the marker), which can be any string of characters, as long as it is unique within this instance of the UI_DLG_BOX() function. The character sequence <<%dlg% is specifically recommended because it is supported by bubble help. | |
|
Xdialog_Code |
One or more statements, each of which must be on a separate line from the <<%dlg% and %dlg% arguments. | |
|
%dlg% |
The marker characters can be any string of characters, as long as they match those in the first argument ( <<%dlg% ). | |
|
Code |
Optional. Xbasic code that describes what should happen when various events happen when the user is interacting with the dialog box. For example, what should happen when the user presses a button, or when the user tabs out of a field. The Code section has the following structure: Code = <<%code%
à |
|
Description
The UI_MODELESS_DLG_BOX() function creates a modeless dialog.
Supported By
Alpha Five Version 5 and Above
Limitations
Desktop applications only.
Example
This example displays a simple modeless dialog box.
|
ui_modeless_dlg_box("Basic Modeless Dialog",<<%dlg% {xmargin=10} {ymargin=2} <20,2Click Here!MyButton> %dlg%,<<%code% if a_dlg_button="MyButton" ui_modeless_dlg_close("Basic Modeless Dialog") end if %code%) |
See Also