The file name of the icon for a TreeView node in a TreeView level band when the icon is in either the expanded or collapsed state. You set the icon file name separately for each TreeView level band.
TreeView DataWindows
Describe and Modify argument:
"DataWindow.Tree.Level.#.property { = value } “
Parameter |
Description |
---|---|
# |
The number of the level for which you want to specify an icon. The level number must exist. |
property |
A property that indicates whether the icon specified is for the expanded or collapsed state. Values are:
|
value |
(exp) A string value that is the file name of the tree node icon in the selected TreeView level band. Value can be a quoted DataWindow expression. |
Select the level by clicking the gray divider for the band. Specify a file name and location in the TreeLevelCollapsedTreeNodeIconName and TreeLevelExpandedTreeNodeIconName properties in the General category in the Properties window for the band. These properties are disabled if is not selected in the General category in the Properties window for the DataWindow.
You cannot set these properties using dot notation.
For a TreeView Web DataWindow, the image files must be deployed to the Web site.
The following example gets the name of the icon used when a level 1 node is collapsed:
ls_ico = dw_tview.Describe & ("DataWindow.Tree.Level.1.CollapsedTreeNodeIconName")