![]() |
![]() |
![]() |
![]() |
UIoptionMenu
Synopsis
a menu that allows a selection from a list of UIoptions
UIdecorContainer+UIradioList UIoptionMenu<is_val_function=0> {
width = 200;
height = 37;
int optionLabel;
string label=> name_of(<-,1);
UIpixmap labelPixmap<NEvisible=0>;
string font;
enum alignment {
choices = {"left", "center", "right"};
};
int useSelectedCmd;
omethod+notify_inst+notify update<NEvisible=0,lang="cxx",interruptable=0>= "UIoptionMenuUpdate";
};Description
UIoptionMenu is similar to the Motif XmOptionMenu widget. The menu items are an array of UIoption class objects. In some cases the UIoptiionMenu ignores its width parameter and sets the width to be just big enough for the largest item on the menu. A possible work around for this is to add spaces to the end of the menu item.
Subobjects
labelradioBehavior =1tearOff <Not visible in Network Editor>isHelpCmdaccelerator;acceleratorText;dims => array_size(cmdList)&cmdList[]
selectedItem;*selectedCmd;cmdList[]
* parent;grouptoParent;&cursor;events <Not visible in Network Editor>;
shellParent <Not visible in Network Editor>;canHaveChildren <Not visible in Network Editor>.
&visible=0;&active;pixmap;color;fontAttribute;fontlist <No longer used. Not visible in Network Editor>;cxxhandle <Internal Object. Not visible in Network Editor>;handle <Internal Object. Not visible in Network Editor>;window_resources <No longer used. Not visible in Network Editor>;motif_resources <No longer used. Not visible in Network Editor>;layout <No longer used. Not visible in Network Editor>
labelPixmap <Not visible in Network Editor>
fontString. Font string descriptor to use.
Enumerator. Controls the placement of the UIlabel.0 = left aligned1 = center aligned2 = right aligned
Example
File
See Also Related Modules
![]() |
![]() |
![]() |
![]() |