4. System Classes : MenuGroup Class
 
Share this page                  
MenuGroup Class
Note:  The MenuGroup class is used for classification only.
This class is a menu that contains other menu fields. A menu group can contain other menu groups, individual menu items, menu separators, or any subclass of these fields except menu bars.
The two subclasses of MenuGroups are MenuBar, a single menu bar for the frame that is displayed across the top of the window, and MenuStack, which is either a pull-down or slide-off menu, depending on its location in the menu hierarchy, or represents the superclass of the option menu for control buttons. For more information see the MenuBar class (see MenuBar Class) and the MenuStack class (see MenuStack Class).
If the menu group is associated with a variable, any named menu items contained within it become attributes of an unnamed class that you can use only within the frame that contains the menu. To access the menu items, use standard dot notation. If a MenuGroup is not associated with a variable, you can access the MenuFields within it directly, without dot notation.
All platforms have a standard look and feel defined for menu text. The following attributes do 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)
Inherited By
MenuBar
MenuStack
OptionMenu
Attributes
ChildMenuFields
IsBold
IsItalic
IsPlain
TextLabel
TypeFace
TypeSize
Methods
FieldByName
UpdMenu