TreeNodeSelecting

Description

Occurs before a node in a TreeView DataWindow is selected.

PowerBuilder event information

Event ID: pbm_dwntreenodeselecting

Argument

Description

row

Long by value. The number of the first row in the group to be selected.

grouplevel

Long by value. The TreeView level of the group to be selected.


Return Values

Set the return code to affect the outcome of the event. Return 0 to continue the selecting operation or return any other value to cancel the selecting operation.

Usage

The TreeNodeSelecting event occurs before the user selects a TreeNode or uses the SelectTreeNode method.

Examples

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

sle_row.text = string(row)
sle_level.text = string(grouplevel)
return 0

See also

TreeNodeSelected