Occurs when a TreeView item has collapsed.
Event ID |
Objects |
---|---|
pbm_tvnitemcollapsed |
TreeView |
Argument |
Description |
---|---|
handle |
Long by reference (the handle of the collapsed TreeViewItem) |
Long. Return code choices (specified in a RETURN statement):
0 Continue processing
This example changes the picture for the collapsed item:
TreeViewItem l_tvi
integer li_level
This.GetItem(handle, l_tvi)
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)