Magic-7.3 Command Reference

#

## maketoolbar

Generate the GUI layout window toolbar.

### Shortcuts:

> Menu item Options->Toolbar implements the command maketoolbar.

### Usage:

> maketoolbar frame_name

> > where frame_name is the Tk path name of a GUI layout window frame (e.g., ".layout1", ".layout2").

### Summary:

> The maketoolbar command generates the toolbar for the GUI layout window. The toolbar contains a set of buttons representing each layer type in the technology file. Each toolbar button has bindings for mouse buttons and keys to implement shortcut commands in magic. While the mouse pointer is inside the boundary of the toolbar button, the name of the layer represented by the toolbar is printed in the title bar of the window.

> > Figure 1. The GUI toolbar for the default scmos technology.

> The default bindings for the toolbar buttons and the magic commands they invoke are as follows:

> > Button-1
> >   see layername
> > Button-3
> >   see no layername
> > Button-2
> >   paint layername
> > Shift-Button-2
> >   erase layername
> > Key-p
> >   paint layername
> > Key-e
> >   erase layername
> > Key-s
> >   select more area layername
> > Key-S
> >   select less area layername

> The toolbar is not present on window startup due to timing problems with several window managers that prevents the correct measurement of window height.

### Implementation Notes:

> maketoolbar is implemented as a Tcl procedure in the GUI wrapper script.

Return to command index

Last updated: October 7, 2004 at 3:12am