2012

Table Of Contents
This is the syntax for removing a menu:
(menucmd "Gcustomizationgroup.menuname=-")
Gcustomizationgroup.menuname=-
The following shows how to remove the menu NEW3 that is a member of the
MyMenu group.
(menucmd "Gmymenu.new3=-")
$Gmymenu.new3=-"
As you might expect, the preceding format is preferable to the Pn= format
because it removes only the specified menu. The following shows how to
remove the menu at the P4 location (whatever it is).
(menucmd "P4=-")
$P4=-
NOTE Use the Pn syntax as part of the syntax for a menucmd statement only. Use
the $Pn syntax for macro-specific statements.
Control Toolbars Across Partial CUIx Files
To control toolbars across partial CUIx files, use the following syntax at the
Enter toolbar name or [ALL]: prompt of the -TOOLBAR command.
menugroup.subsection-name
This syntax accesses the toolbar identified by menugroup.menuname and allows
you to use the full spectrum of -TOOLBAR command options on that toolbar.
If the menu group is left out of any of these commands and functions, the
program defaults to the main CUIx file.
You should be aware of the following:
Image tile menus cannot be swapped from external customization files.
You can swap customization elements of the same type only; that is, one
shortcut menu for another, one toolbar for another, and so on. Trying to
swap between types may result in unpredictable behavior.
292 | Chapter 4 User Interface Customization