J6/Treeview/Options

From J Wiki
Jump to navigation Jump to search

Treeview/Navigator


Main Options

Values for LEVEL and NODE are required.

Option Default Description
ID tv id of isigraph control
LEVEL node level (0=top)
MASK 0 mask of visible nodes
NODE node names
PID id of parent form
SELECT selected node
TYPE 0 node types
VALUE 0 node checkbox values

ID - id of isigraph control used by treeview

LEVEL - integer list matching NODES, where top level is 0.

MASK - mask of visible nodes. Level-0 nodes are always visible.

NODES - list of node names

PID - id of parent form

SELECT - index of currently selected node, if any.

TYPE - type of node. 0=normal, 100=checkbox. Where types are mixed, the corresponding VALUE is based on all nodes being checkboxes. However, a checkbox is not displayed where type=0.

VALUE - value of node. 1=checked

Other Options

Defaults are used if not given.

Option Default Description
BUTTONCOLOR scrollbar colors
COLOR treeview colors
FONT PROFONT font
ICONS bitmaps for icons
LOC COCREATOR treeview locale
SHOWLINES 1 if show dotted lines
SHOWICONS 1 if show icons

BUTTONCOLOR - color table used to draw buttons. Defaults use system colors:

0 text COLOR_BTNTEXT
1 face COLOR_BTNFACE
2 light shadow COLOR_BTNSHADOW
3 high light COLOR_BTNHIGHLIGHT
4 dark shadow COLOR_3DDKSHADOW
5 light COLOR_3DLIGHT

COLOR - colors used in treeview. Defaults use system colors.

0 background COLOR_WINDOW
1 highlight COLOR_HIGHLIGHT
2 window text COLOR_WNIDOWTEXT
3 highlight text COLOR_HIGHLIGHTTEXT
4 box edge Grey 134
5 box corner Grey 186
6 +/- sign Grey 64
7 dots Grey 160

FONT - font, default PROFONT

ICONS - table of bitmap images, with 1 or 2 columns:

- a 1-column table has the same images for closed/open
- a 2-column table has separate images for closed/open

Each entry has 257 RGB numbers, where the first number is the background color and the remaining 256 numbers are a 16x16 bitmap

LOC - locale of parent form

SHOWLINES - if dotted lines are shown

SHOWICONS - if icons are shown