GuidoScript
Overview
The GuidoScript command reads an external file that must contain valid Tcl/Guido commands and includes it in the current file at the position it was invoked from. GuidoScript allows large guido forms, menu bars, and tool bars to be split into more logical and managable pieces. It is used heavily in the definition of the system menu bars and tool bars.
Synopsis
GuidoScript pathname
Description
GuidoScript is an include directive that will load the Tcl/Guido code in the file specified by pathname at the point it is invoked.
Arguments
pathname Pathname is the full path including the file extension to the Guido code. The pathname can be absolute, relative, and/or include a logical
Examples
Example 1
The example below demonstrates the use of GuidoScript in a menu bar definition. It can be used in any Guido script file to include external code.
GuidoMenuBar MainMenu {
-label "Main Menu"
-mode system
GuidoScript scripts/menus/file.tcl
GuidoScript scripts/menus/edit.tcl
GuidoScript scripts/menus/create.tcl
GuidoScript scripts/menus/display.tcl
GuidoScript scripts/menus/view.tcl
GuidoScript scripts/menus/inquire.tcl
GuidoScript scripts/menus/tools.tcl
GuidoScript scripts/menus/dtms.tcl
GuidoScript scripts/menus/volumes.tcl
GuidoScript scripts/menus/plotting.tcl
GuidoScript scripts/menus/customise.tcl
GuidoScript scripts/menus/help.tcl
}
|