The Tools menu in the Tool Control window is initialized in the user's .wrspiceinit file (if any) by a tbsetup command. This command can appear only in startup files. The command is placed in the file automatically, and a .wrspiceinit file created if necessary, by invoking the update command from the prompt line or pressing the Update button in the File menu of the Tool Control window. The file can be hand-edited if needed.
If there is no initialization found, the configuration is set to an internal default (all tools invisible at startup).
The command string takes the following form:
The old and vert keywords are ignored if given. They exist for backward compatibility.
For each block, the first token gives the tool name, with the ``toolbar'' entry indicating the Tool Control window itself. For other than the Tool Control window, which is always shown, the on and off keywords specify whether the tools are shown at startup. The two numbers that follow give the position of the upper left corner of the tool on the screen (the screen origin is the upper left corner, coordinates are in pixels). For other than the first (Tool Control window) entry, the blocks can be rearranged or deleted. The Tools menu will show only the tools listed, in the order given. Thus, the Tools menu can be customized.
Here is how to generate an initial configuration. Simply start WRspice on a system that supports graphics, and the Tool Control window will appear somewhere on-screen. After you have opened some of the tools from the Tools menu and arranged them to your preference and/or moved the Tool Control window, press the Update button in the File menu. A .wrspiceinit file will be created, or an existing file updated, Alternatively, the update command can also be entered from the command line. Hand editing of the .wrspiceinit file may be used to remove buttons or change the button order in the Tools menu. Once edited, only the tools present will be updated.