4 Differences in behaviour

 4.1 Size of plotting surface
 4.2 X resources

4.1 Size of plotting surface

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:

  % xmake -geometry 900x600 -colours 64 xwindows

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:

  % xmake -height 600 -width 900 -colours 64 xwindows

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.

4.2 X resources

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.

  !
  ! GWM
  !   standard set
  *Gwm*foreground: green
  *Gwm*background: black
  *Gwm*colours: 64
  *Gwm*geometry: 850x600
  !   TCL set
  *gwm*Foreground: green
  *gwm*Background: black
  *gwm*Colours: 64
  *Gwm*Height: 600
  *Gwm*Width: 850
  !

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.