UIoption
Synopsis
a menu command to trigger an event if it is set
UIcmd UIoption {
Boolean isUIoption;
Boolean+opt+OPort2 set = 0;
method+opt+notify_val update<NEvisible=0,lang="cxx",interruptable=0> = "UIoptionUpdate";
};Description
UIoption is similar to UIcmd, which is the base class for all objects that generate a single action when selected. UIoption differs from UIcmd because it defines the additional subobject &set, which changes between 0 and 1 each time the user
Thus, UIoption is used in menus for functions such as raising additional panels of controls (connecting &set to the panel's visibility subobject), while UIcmd tends
to initiate actions defined in code.
Multiple UIoptions, one for each action, can be the parent objects in networks for
all "list of command" objects such as UIcmdList, its derived objects UIoptionList
and UIradioList, and their derived objects and macros UIoptionbox, UIradioBox, UIoptionBoxLabel and UIradioBoxLabel.
Subobjects
pixmap <Not visible in Network Editor>;
color <Not visible in Network Editor>;
fontAttribute <Not visible in Network Editor>;
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>
is UIoption
Boolean. OPort2. A flag indicating whether the UIoption is selected. 1=selected; 0=not selected. This usually connects to another widget's visibility subobject. For example, if the user selects the UIoption "Read Field", it has the effect of raising the UIfileDialog.
Example
AVS5_Modules.Mappers.ACU_arbitrary_slicer
v/ACUmods.v
Examples.Applications.UIApp
examples/ui_samp.vFile
See Also Related Modules