UIoptionList
Synopsis
a list of UIoptions
UIcmdList UIoptionList {
int &max;
int numSelectedItems => array_size(selectedItems);
int+Port selectedItems[];
UIoption+IPort2 &cmdList[] {
set+nonotify;
};
};
Description
UIoptionList is a UIcmdList that contains only UIoptions (no UIcmds, etc.). With it, you can determine which options in the list are set and can restrict the number of options that can be set.
It differs from UIradioList in that more than one option can be selected at one time.
Subobjects
label
radioBehavior
tearOff <Not visible in Network Editor>
isHelpCmd
accelerator;
acceleratorText;
dims => array_size(cmdList)
&cmdList[]
&max
(Integer.) Sets the maximum number of options that can be set at one time. If undefined, all options can be set. Once the max options are set, all other options are deactivated until fewer than max options are set.
numSelectedItems => array_size(selectedItems)
(Integer). Reflects how many options in the list are set.
selectedItems[]
(Integer. Port). A variable length array that contains the integer indices of the UIoptions in the list that are set. The array is as long as the number of selected UIoptions.
cmdList[]
(UIoption. IPort2.) An array of pointer references to the UIoptions in the list that are set.
Example
Not Available
File
v/UI.v
See Also Related Modules