Untitled

(Steven Felgate) #1
Absolute Referencing of Pull-Down and Shortcut Menu Items

In addition to referencing a menu item, you can activate or deactivate a menu
item with the $Pn=xxx syntax. This is the format:

$Pn.i=xxx

The $ loads a menu section; Pn specifies the active menu section (0 through
16 are valid values); i specifies the menu item number; and xxx (if present),
specifies a string of grayed out or marked characters.

Using the $Pn=xxx syntax, the following example adds a check mark to item
1 in the POP7 section.

$P7.1=!.

Menu item numbering is consecutive regardless of the hierarchy of the menu.

To make it easy for an item to address itself regardless of its location in the
menu hierarchy, use these forms:

$P@.@=xxxReferences the current or most recently chosen command.

[email protected]=xxxReferences item n in the current or most recently chosen menu.

Quick Reference


Commands

CUI

Manages the customized user interface elements in the product.

Swap and Insert Pull-Down Menus


Using the Customize User Interface (CUI) Editor, you can use workspaces to
control the swapping of pull-down menus. However, you can also swap one
pull-down menu programmatically for another (for example, when a user
loads an application that requires an additional menu).

Swap Pull-Down Menus

Because the program has cascading pull-down menus, there is little need to
swap menus. Also, swapping menus can detract from the consistency of the
user interface. However, using $ commands, you can swap pull-down menus
and submenus. An alternative to menu swapping involves relative (or global)

230 | Chapter 4 User Interface Customization

Free download pdf