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 10
Adding Separator to Toolbar
Use the following API to add a separator to the toolbar:
addSeparatorToToolBar {sch} 1
Adding Actions
To add a custom action to a tool item, first the action needs to be created and then
added to the tool item.
# Create Action Item createAction
#add action item to the tool item
addActionToToolItem { 1
The next section wraps up this application note by illustrating a sample Tcl script to add
a tool item to the toolbar.
Sample Tcl Script to Create and Add Action to Tool Item
#This will create an action helloWorld which will print Hello World on
the tcl window of System Capture
createAction helloWorld { puts "Hello World" } {} {} {} {} {}
#This will add the action item helloWorld to the tool button.
addToolItemToToolBar saveButton 1 "helloWorld"