Chapter Contents |
Previous |
Next |
Organizational Chart: _setOption |
Syntax | |
Values for _setOption | |
Example |
Syntax |
CALL NOTIFY (orgchart-name, '_setOption', option<, val1<, val2>>); |
Argument | Type | Description |
---|---|---|
option |
C | specifies the option to set. Option names and values are described in the following table. |
val1 |
N | specifies a value for option |
val2 |
N | specifies a value for option |
Values for option |
Description | Values for val1 |
Values for val2 |
||||
---|---|---|---|---|---|---|---|
'ALL_LEVELS' | specifies levels of the tree to display | unused | |||||
'BORDER_TYPE' | sets the border style of one or all node types | 1 | none | n |
node type; if omitted, val1 applies to all node types | ||
2 | simple | ||||||
3 | shadow | ||||||
4 | button | ||||||
5 | embossed | ||||||
'BORDER_WIDTH' | sets the border width of one or all node types | 0...64 | line width in pixels; if out of range, uses the closest valid value | n | node type; if omitted, val1 applies to all node types | ||
'DEFAULT_TYPE' | sets the default node type for any new nodes | unused | |||||
'IV_CHANGED' | reprocess the values of all the instance variables | unused | unused | ||||
'LINE_WIDTH' | sets width of the line that connects the nodes for one or all node types | 0...64 | line width in pixels; if out of range, uses the closest valid value | n |
node type; if omitted, val1applies to all node types | ||
'SMOOTH_SCROLLING' | specifies whether to refresh chart during scrolling or after the mouse button is released | unused | |||||
1 | during scrolling | ||||||
'VERTTEXT' | defines how text in nodes is displayed | 1 | vertically | n |
node type; if omitted, val1 applies to all node types | ||
0 | horizontally | ||||||
'XYSPACE' | sets the spacing between nodes in pixels | n | horizontal space | n | vertical space |
Example |
This statement causes the chart to show only the top two layers of the tree (before _repopulate):
call notify('org1','_set_option_', '_all_levels_',0);
This statement sets the default node type to text and image (type 3):
call notify('org1','_set_option_', '_default_type_',3);
This statement changes all type 1 nodes to a button border:
call notify('org1','_set_option_', 'border_type',4, 1);
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.