The TCL/GWM widget is controlled slightly differently than the standard GWM Xdisplay manager when specifying the size of the plotting surface.
The standard GWM Xdisplay manager creates a plotting surface with a boarder round it either of the
default size (780 by 512 pixels), or governed by the -geometry
command line switch. The
command:
will generate a 64 colour window 900 by 600 pixels in size called xwindows.
The TCL/GWM widget takes any -geometry
command line switch information to use as the size of
the entire widget, and packs the buttons and scrollbars round the largest plotting surface it can create
inside the size of widget defined.
To create a plotting surface 900 by 600 pixels you should use the -height
and -width
command line
switches. The command:
will create a widget with a plotting surface 900 by 600 with the buttons and scroll bars packed round the plotting surface.
You should note that the standard GWM Xdisplay manager does not understand the -height
and
-width
command line switches and will generate an error message.
The TCL/GWM widget responds to a slightly different form of X-resource default definitions. These are typically defined in ${HOME}/.Xdefaults.
The following example shows definitions that will create a plotting surface of 850 by 600 pixels with 64 colours and with foreground and background colours set to green and black.
Defaults set in the .Xdefaults
file will be overridden by any command line switches or by
applications generating their own ‘xwindows’ displays with specific size, colour and other
options.