Expanding event
Description
Occurs before a node in a TreeView DataWindow expands.
PowerBuilder event information
Event ID: pbm_dwnexpanding
Argument |
Description |
---|---|
row |
Long by value. The number of the first |
grouplevel |
Long by value. The TreeView level of |
Return Values
Set the return code to affect the outcome of the event. Return
0 to continue processing (expand the selected node) or return any
other value to cancel the expansion.
Usage
A TreeView node expands when the user clicks the State icon
(+) in the TreeView DataWindow or uses any of the Expand methods.
The Expanding event occurs before the Expanded event.
Examples
The following statements in the Expanding event script
display a message box that allows the user to cancel the operation:
1 |
Integer li_ret<br> <br>li_ret = MessageBox("Expanding node",   &<br>   "Are you sure you want to expand this node?",  &<br>   Exclamation!, OKCancel!)<br>IF li_ret = 1 then<br>   return 0<br>ELSE<br>   RETURN 1<br>END IF |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments