next up previous contents index
Next: CursorBox Up: Procedures Previous: ClearListClearText

ColorBox

  This template defines a new procedure named ColorBox. Calling this procedure pops up a dialog box to select a color. Colors can be entered by their name, selected from a list, defined in RGB values or as HSV values. The procedure gets the following parameters:

tabular1898

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

tabular1901

A small example of an invocation may look like this:

 
		ColorBox ''/usr/lib/X11/rgb.txt'' ''Background''

This would create the following dialog box:

   figure1910
Figure: The template ColorBox



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