Adding Custom Menus to Allegro System Capture
Learn more at Cadence Support Portal - https://support.cadence.com
© 2019 Cadence Design Systems, Inc. All rights reserved w orldw ide. Page 5
Adding Menus to Menu Bar
To add a custom menus to the main menu bar, use the following Tcl API:
addMenuToMenuBar
Example
In the following example, a menu called Custom Menu is added between the Tools and
Help menus.
set customMenu {Custom
Menu} set beforeMenu
"Help"
# add menu to menu bar
addMenuToMenuBar $customMenu {} 1
$beforeMenu
Creating a Pop-up Menu
Pop-up menus can be created either within a top-level menu or within other menus. To
create a pop-up menu, use the following Tcl API:
addMenuToMenuName
In the following example, a pop-up menu, Pop-Up, is added under the main menu,
Custom Menu. Typically, icons are not specified for top-level menus and pop-up menus.
This is done by leaving the icon file path blank.
set customMenu {Custom
Menu} set popupMenu {Pop-
Up}
addMenuToMenuName $customMenu
$popupMenu {} 1