4. System Classes : MenuList Class
 
Share this page                  
MenuList Class
The MenuList class is a menu item that displays a list of related menu selections. The end user can select only one of the menu items in the list. By clicking on one, the user turns off all the others. MenuList functions in menus the same way that radio fields, list fields, and option fields work for fields.
The ValueList attribute contains the choices on the menu list. Each choice has a text string and an associated numeric value. The MenuList always displays the text string to the user. For more information about setting the variable associated with a MenuList, see the description of the ChoiceList class (see ChoiceList Class) and the ChoiceItem class (see ChoiceItem Class).
You can set the values of a menu list dynamically. For more information about setting the values dynamically, see the discussion of dynamic programming in the Programming Guide.
A variable of either type can be nullable. If you set the variable to null, it turns off the indicator and no choice is selected. If the variable is not nullable, then one item on the list is always selected.
All platforms have a standard look and feel defined for menu text. The following attributes does not change the appearance of the menu text when the frame is displayed:
IsBold
IsItalic
IsPlain
TypeFace
TypeSize
 
Inherits From
Object Class (see Object Class)
FieldObject Class (see FieldObject Class)
MenuField Class (see MenuField Class)
MenuItem Class (see MenuItem Class)
Inherited By
None
Attributes
CurEnumDisplay
CurEnumIndex
CurEnumText
CurEnumValue
IsBold
IsItalic
IsPlain
TypeFace
TypeSize
ValueList
Methods
UpdChoiceList