03.01.2013 Views

Customization Guide (.pdf) - Documentation & Online Help - Autodesk

Customization Guide (.pdf) - Documentation & Online Help - Autodesk

Customization Guide (.pdf) - Documentation & Online Help - Autodesk

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Absolute Referencing of Pull-Down and Shortcut Menu Items<br />

In addition to referencing a menu item, you can activate or deactivate a menu<br />

item with the $Pn=xxx syntax. This is the format:<br />

$Pn.i=xxx<br />

The $ loads a menu section; Pn specifies the active menu section (0 through<br />

16 are valid values); i specifies the menu item number; and xxx (if present),<br />

specifies a string of grayed out or marked characters.<br />

Using the $Pn=xxx syntax, the following example adds a check mark to item<br />

1 in the POP7 section.<br />

$P7.1=!.<br />

Menu item numbering is consecutive regardless of the hierarchy of the menu.<br />

To make it easy for an item to address itself regardless of its location in the<br />

menu hierarchy, use these forms:<br />

$P@.@=xxx References the current or most recently chosen command.<br />

$P@.n=xxx References item n in the current or most recently chosen menu.<br />

Quick Reference<br />

Commands<br />

CUI<br />

Manages the customized user interface elements in the product.<br />

Swap and Insert Pull-Down Menus<br />

Using the Customize User Interface (CUI) Editor, you can use workspaces to<br />

control the swapping of pull-down menus. However, you can also swap one<br />

pull-down menu programmatically for another (for example, when a user<br />

loads an application that requires an additional menu).<br />

Swap Pull-Down Menus<br />

Because the program has cascading pull-down menus, there is little need to<br />

swap menus. Also, swapping menus can detract from the consistency of the<br />

user interface. However, using $ commands, you can swap pull-down menus<br />

and submenus. An alternative to menu swapping involves relative (or global)<br />

230 | Chapter 4 User Interface <strong>Customization</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!