![]() |
![]() |
![]() |
![]() |
UIoptionBox
Synopsis
create a UIoptionList of toggle buttons
UIprimitive+UIoptionList UIoptionBox {
cmdList+read;
selectedItems+read;
enum orientation { choices = {"vertical", "horizontal"}};
int itemWidth;
int itemHeight <NEvisible=0>
width = 100;
#ifdef MSDOS
height => max_array({ 1, dims *
(2 +UIdata.UIfonts[0].lineHeight) });
#else
height => max_array({ 1,
dims * UIdata.UIfonts[0].lineHeight });
#endif
label <NEvisible=0>;
#ifdef MSDOS
cmdList { set-nonotify; };
#endif
omethod+notify_inst+notify update<NEvisible=0,
interrruptable=0,lang="cxx"> = "UIoptionBoxUpdate";
};Description
UIoptionBox creates a UIoptionList of toggles in a window.
Subobjects
label ;radioBehavior;tearOff <Not visible in Network Editor>;isHelpCmd;accelerator;acceleratorText;dims => array_size(cmdList)
&max;numSelectedItems => array_size(selectedItems);selectedItems[]Inherited from UIoptionList .message
x = 0; y;width=100;height= > max_array({ 1, dims * UIdata.UIfonts[0].lineHeight })
canHaveChildren <Not visible in Network Editor>;shellParent <Not visible in Network Editor>
events <Not visible in Network Editor>;grouptoParent;* parent;&cursor
&visible;&active;pixmap;color;fontAttribute;handle <Internal Object. Not visible in Network Editor>;fontlist <No longer used. Not visible in Network Editor>;cxxhandle <Internal Object. Not visible in Network Editor>;motif_resources <No longer used. Not visible in Network Editor>;window_resources <No longer used. Not visible in Network Editor>;layout <No longer used. Not visible in Network Editor>
Enumerator. If = 0, layout buttons vertically. If = 1, layout buttons horizontally.The default is 0.
Example
File
See Also Related Modules
![]() |
![]() |
![]() |
![]() |