Occurs when a node in a TreeView DataWindow has collapsed.
PowerBuilder event information Event ID: pbm_dwncollapsed
Collapsed is not a standard PowerBuilder event. To write a script for this event, you must first define a user-defined event for the event ID pbm_dwncollapsed.
Argument |
Description |
---|---|
row |
Long by value. The number of the first row in the group to be collapsed. |
grouplevel |
Long by value. The TreeView level of the group to be collapsed. |
There are no return codes.
A TreeView node collapses when the user clicks the State icon (-) in the TreeView DataWindow or uses any of the Collapse methods.
The Collapsing event occurs before the Collapsed event.
The following statements in the Collapsed event save the current row and level to instance variables:
ii_level = grouplevel ii_row = row