ExpandedTreeNodeIconName

Description

The file name of the tree node icon in the specified TreeView level band when the icon is in the expanded state.

Applies to

TreeView DataWindows

Syntax

Describe and Modify argument:

"DataWindow.Tree.Level.#.ExpandedTreeNodeIconName { = value } "

Parameter

Description

#

The number of the level for which you want to specify an icon. The level number must exist.

value

(exp) A string value that is the file name of the tree node icon in the selected TreeView level band when it is in an expanded state.

Value can be a quoted DataWindow expression.

Usage


In the painter

Select the band by clicking the gray divider for the band. Specify a file name and location in the Expanded Tree Node Icon File box on the General page in the Properties view. This property is disabled if the Use Tree Node Icon is not selected on the General page in the Properties view for the DataWindow.

You cannot get or set this property using dot notation.

Examples

Example 1

The following code sets the ExpandedTreeNodeIconName for level 2 to C:\images\beach.bmp:

string ls_modstring, ls_return
ls_modstring = &
   "DataWindow.Tree.Level.2.ExpandedTreeNodeIconName"
ls_modstring += "='C:\images\beach.bmp'"
ls_return = dw_1.Modify(ls_modstring)