Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

Automatic Menu Enabling Functions

The menu update system is a maintainable, extensible mechanism for specifying when a menu in the Virtuoso Layout Editor is enabled or disabled. Several applications such as the layout editor itself and Virtuoso® XL Layout Editor can define update policies simultaneously.

For each menu, you can define an enable predicate that specifies when the menu is to be enabled. The enable predicate is an integer (fixnum) whose bits correspond to status bits in a status mask defined by your application. When the Virtuoso tool updates the window menus, it Boolean ANDs each menu item’s enable predicates with the corresponding window status. Each window can have more than one window status mask. For example, one layout window might have a status mask for the layout editor, a separate status mask for the XL layout editor, and a third user status mask. Likewise, a menu item can have a separate enable predicate that corresponds to each window status mask. A menu item is enabled if all the status flags specified by all of the menu item’s enable predicates are TRUE. That is determined by bitwise ANDing each enable predicate with the corresponding window status.

Related Topics

Defining a Menu Update Policy

geGetEnablePredicate

geGetWindowStatus

geSetEnablePredicate

geSetWindowStatus

geUpdateWindowMenus


Return to top
 ⠀
X