Navigation
Tree Definition File
The navtreedata file must
be in XML, and must start with the following:
<?xml
version="1.0" ?>
<navtree
xmlns="www.sl.com" version="1.0">
The navtreedata file must
end with the following:
</navtree>
The following tags are supported:
Tag |
Description |
Attributes
|
Name
|
Description
|
node |
Add
a node to the navigation tree. |
display |
Name of the display (.rtv)
file. |
label |
Label for this node in the
navigation tree. Defaults to display name if no label is set.
Specify the font and color
of the label using HTML. For example, to draw a green label using a 50-point
italic monospaced font:
label="<html><p style=
'font-family:monospaced;font-style:italic;font-size:50;color:green'>
Your Label Goes Here"
HTML font settings specified
here override treecolor and treefont settings for this node. |
mode |
If the attribute value is
keepalive,
the display is kept in memory the entire time the application is running. |
subs |
Substitutions to apply to
the display. Substitutions are optional and must use the following syntax:
$subname:subvalue $subname2:subvalue2
If a substitution value contains
a single quote, it must be escaped using a / :
$filter:Plant=/'Dallas/'
If a substitution value contains
a space, it must be enclosed in single quotes. Do not escape these single
quotes:
$subname:subvalue $subname2:'sub
value 2'
A substitution string cannot contain
the following:
:
|
|
|
.
|
tab
|
space
|
,
|
;
|
=
|
<
|
>
|
'
|
"
|
& |
/ |
\ |
{ |
} |
[ |
] |
( |
) |
|
treefont |
Set
the font used in the navigation tree. |
name |
Specifies the font family
name. |
style |
Can be set to plain, bold,
italic or bold italic. |
size |
Font point size. |
treecolor |
Set
font and background color in the navigation tree. Specify in hexadecimal
RGB format: #rrggbb (e.g., Example: cyan = #00FFFF) or the following: black,
white, red, blue, green, yellow, cyan, magenta, gray, lightGray, darkGray,
orange, pink. |
text |
Specifies the
font color for tree labels. |
background |
Specifies the
background color for the tree and non-selected tree labels. |
selection |
Specifies the
background color for a selected tree label. |
For Example:
<?xml version="1.0" ?>
<navtree xmlns="www.sl.com"
version="1.0">
<treefont name="serif"
style="bold italic" size="18">
<treecolor text="red"
background="gray" selection="#00B9F3">
<node label="Trading Exchange
Demo" display="topview">
<node label="Exchange Engine" mode="keepalive"
display="exchange_engine">
</node>
<node label="<html><p style='font-family:monospaced;font-style:italic;font-size:50;color:green'>Message
Content"
display="exchange_message_content">
</node>
</node>
</navtree>
Nodes may be nested. You
may only specify one top level node.
|