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

addCheckButton(label, cmdCode)
addCheckButton(label, cmdCode, checked)
addOption(label, cmdCode)
Adds a menu option the given text label.
addRadioButtons(labels, cmdCode)
addRadioButtons(labels, cmdCode, initValue)
addSeparator()
Adds a separator bar to the menu.
addSubMenu(label)
Adds a sub menu item with the given text label.

Detailed Description

addSubMenu(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.
Returns:
A new graphics menu object.
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


« GraphicsImage | ReferenceGuide | Event Handlers »

Last modified: November 12, 2014, at 08:34 AM.