Multi-Select List Box Control Syntax
Syntax
[%M%Width,Height Variable_Name^#Choices[!Event][?Enabled]]
Note: You must not have any space characters in the finished command, except those that may be inside entries in the Choices list.
Argument |
Type |
Description |
| [%M% ^# ] | C |
The leading [%M% and trailing ] and ^# characters are required. |
| Width | N |
The width of the control. |
| Height | N |
The height of the control. |
| Variable_Name | C |
The name of a character variable to receive the user selection, or a numeric variable to receive the index value of the selected radio button. The index of the top-most button is 1. |
| Choices | C |
See Choices Syntax. |
| Event | C |
Optional. See Event Syntax. |
| Enabled | L |
Optional. See Enabled Syntax. |
Description
One or more Multi-Select List Box objects may appear inside the Format section of a UI_DLG_BOX() function. The selections are stored in the %mw% variable.
Example
For example, the following script allows you to select multiple cities: [Picture]
cities = <<%dlg% Atlanta New York Los Angeles Boston Johannesburg Sydney %dlg% ui_dlg_box("Multi-Select List Box",<<%dlg% {wrap=30} [%M%.30,5cities_chosen^#cities]; {line=1,0}; This variable shows what entries in the above list box are selected.; [%mw%.30,5cities_chosen]; <OK> %dlg%) |

See Also
Xdialog Language Directives and Operators, Xdialog Control Reference
Supported By
Alpha Five Version