TreeNodeSelected

Description

Occurs after a node in a TreeView DataWindow is selected.

PowerBuilder event information Event ID: pbm_dwntreenodeselected

Argument

Description

row

Long by value. The number of the first row in the group that has been selected.

grouplevel

Long by value. The level of the group that has been selected.

Returns

There are no return codes.

Usage

A TreeView node is selected when the user clicks the State icon (-) in the TreeView DataWindow or uses any of the Collapse methods.

The TreeNodeSelected event occurs after the selecting operation when the user selects a tree node using the SelectTreeNode method.

Examples

Example 1

The following statements in the TreeNodeSelected event refresh the text box value with the new node:

sle_row.text = string(row)

sle_level.text = string(grouplevel)

return 0

See also