next up previous contents index
Next: FSBox Up: Procedures Previous: ColorBox

CursorBox

  This template defines a new procedure named CursorBox. Calling this procedure pops up a dialog box to select a cursor. The cursor can be selected from a list, or entered directly. The foreground and the background color can be selected. If the template ColorBox exists, a double click with the right mouse button activates the color selection box. The procedure gets the following parameters:

tabular1922

To configure the different aspects of the cursor box, there exists a global array named cursorBox. A default value of ``-'' means that the Tk default value is used. This array contains elements that control the cursor box (color, font etc.):

tabular1925

A small example of an invocation may look like this:

 
		CursorBox ''/usr/local/lib/Cursors'' ''/usr/lib/X11/rgb.txt''

This would create the following dialog box:

   figure1934
Figure: The template CursorBox



Harry Beker
Thu Feb 29 18:06:38 MET 1996