<<prev file | next file >>    view single page | view frames    summary: fields | routine    details: routine

Colors/

xlct.pro

Like xloadct but fastest to write and call by default the palette palette.tbl which can be in any directory

topXLct Widgets, Color

XLct, SILENT=SILENT, GROUP=GROUP, FILE=FILE, USE_CURRENT=USE_CURRENT, NCOLORS=NCOLORS, BOTTOM=BOTTOM, MODAL=MODAL, BLOCK=BLOCK, UPDATECALLBACK=UPDATECALLBACK, UPDATECBDATA=UPDATECBDATA

Keywords

SILENT       

Normally, no informational message is printed when a color map is loaded. If this keyword is present and zero, this message is printed.

GROUP       

The widget ID of the widget that calls Xlct. When this ID is specified, a death of the caller results in a death of Xlct

FILE        default: 'palette.tbl'

If this keyword is set, the file by the given name is used instead of the file colors1.tbl in the IDL directory. This allows multiple IDL users to have their own color table file.

USE_CURRENT       

If set, use the current color tables, regardless of the contents of the COMMON block COLORS.

NCOLORS        default: !D.TABLE_SIZE

number of colors to use. Use color indexes from BOTTOM to the smaller of !D.TABLE_SIZE-1 and NCOLORS-1.

BOTTOM        default: 0.

first color index to use. Use color indexes from BOTTOM to BOTTOM+NCOLORS-1.

MODAL        default: not run in modal mode

If set, then XLCT runs in "modal" mode, meaning that all other widgets are blocked until the user quits XLCT. A group leader must be specified (via the GROUP keyword) for the MODAL keyword to have any effect.

BLOCK       

Set this keyword to have XMANAGER block when this application is registered. By default the Xmanager keyword NO_BLOCK is set to 1 to provide access to the command line if active command line processing is available. Note that setting BLOCK for this application will cause all widget applications to block, not only this application. For more information see the NO_BLOCK keyword to XMANAGER.

UPDATECALLBACK       

Set this keyword to a string containing the name of a user-supplied procedure that will be called when the color table is updated by XLCT. The procedure may optionally accept a keyword called DATA, which will be automatically set to the value specified by the optional UPDATECBDATA keyword.

UPDATECBDATA       

Set this keyword to a value of any type. It will be passed via the DATA keyword to the user-supplied procedure specified via the UPDATECALLBACK keyword, if any. If the UPDATECBDATA keyword is not set the value accepted by the DATA keyword to the procedure specified by UPDATECALLBACK will be undefined.

Version history

Version

$Id: xlct.pro 137 2006-07-12 09:33:44Z smasson $

History

5/5/1999 copie de xloadct par Sebastien Masson (smasson@lodyc.jussieu.fr)

Other attributes

Common blocks used

colors xlct_com
Produced by IDLdoc 2.0.