ItemCollapsing
PowerScript event
Description
Occurs when a TreeView item is collapsing.
Event ID
|
Event ID |
Objects |
|---|---|
|
pbm_tvnitemcollapsing |
TreeView |
Arguments
|
Argument |
Description |
|---|---|
|
handle |
Long by reference (the handle of the collapsing |
Return Values
Long.
Return code choices (specify in a RETURN statement):
0 — Continue processing
Usage
The ItemCollapsing event occurs before the ItemCollapsed
event.
Examples
This example changes the picture for the collapsing item:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
TreeViewItem l_tvi integer li_level This.GetItem(handle, l_vti) CHOOSE CASE l_tvi.level CASE 1 l_tvi.PictureIndex = 1 l_tvi.SelectedPictureIndex = 1 CASE 2 l_tvi.PictureIndex = 2 l_tvi.SelectedPictureIndex = 2 CASE 3 l_tvi.PictureIndex = 3 l_tvi.SelectedPictureIndex = 3 CASE 4 l_tvi.PictureIndex = 4 l_tvi.SelectedPictureIndex = 4 END CHOOSE This.SetItem(handle, l_tvi) |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest