GraphicsMenu Class Reference« GraphicsImage | ReferenceGuide | Event Handlers » This class defines a menu component that can be added to a graphics or image window. To construct the menu, individual items are added in which each item is associated with either a command code or a pull-down menu. When a menu item is selected, the menu event handler or callback routine is called with the given code. Public Methods
Detailed DescriptionaddSubMenu(label)
v2.0 Adds a sub menu item with the given text label. A new graphics menu object is returned into which menu items can be added.
addOption(label, cmdCode)
v2.0 Adds a menu option the given text label.
addSeparator()
v2.0 Adds a separator bar to the menu.
addCheckButton(label, cmdCode)
v2.0 addCheckButton(label, cmdCode, checked)
v2.0 addRadioButtons(labels, cmdCode)
v2.0 addRadioButtons(labels, cmdCode, initValue)
v2.0 |
||
Last modified: November 12, 2014, at 08:34 AM.
|