User`s guide

Create Menus for a Programmatic GUI
Property Values Description
HandleVisibility
on
, off. Default is
on.
Determines if an object’s handle
is visible in its parent’s list
of children. For menus, set
HandleVisibility to off to
protect menus from operations
not intended for them.
Label
String
Menu label.
To display the
& character in a
label, use two
& characters in
the string.
The words
remove, default,
and
factory (case sensitive) are
reserved. To use one of these
as a label, prepend a backslash
(
\) to the string. For example,
\remove yields remove.
Position
Scalar. Default is 1. Position of a menu item in the
menu.
Separator
off
, on. Defa ult is
off.
Separator line mode
For a complete list of properties and for more information about the properties
listed in the table, see the Uimenu Properties documentation.
How Menus Affect Figure Docking
When you customize the menu bar or toolbar, you can display the GUI’s
docking controls or not by setting
DockControls appropriately, as long as the
figure’s
WindowStyle does not conflict with that setting. You might not need
menus for your GUI, but if you want the us er to be able to dock or undock the
GUI, it must contain a menu bar or a toolbar. This is because docking is
controlled by the docking icon, a small curved arrow near the upper-right
corner of the menu bar or the toolbar, as the follow ing illustration shows.
11-77