OnItemCollapsing - AbstractTreeView
Fired whenever a parent item is about to be collapsed
Type: Event
Parameters
| Parameter | Type | Description |
|---|---|---|
| hItem | Handle | Item handle |
| ByRef bCancel | Boolean | Can be used to cancel the event by returning True |
Syntax
Procedure OnItemCollapsing Handle hItem ByRef Boolean bCancel
Description
The OnItemCollapsing event is fired whenever a parent item is about to be collapsed.
Sample
This sample demonstrates the use of the bCancel parameter to cancel the collapsing of a TreeView item.
Procedure OnItemCollapsing Handle hItem Boolean ByRef bCancel
Move True to bCancel
End_Procedure