OnItemChanging - AbstractTreeView
Fired whenever the current item is about to change
Type: Event
Parameters
| Parameter | Type | Description |
|---|---|---|
| hItem | Handle | The item that will become the current item |
| hItemOld | Handle | The item that is the current item, but is about to lose the focus |
| ByRef bCancel | Boolean | Can be used to cancel the event by returning True |
Syntax
Procedure OnItemChanging Handle hItem Handle hItemOld ByRef Boolean bCancel
Description
The OnItemChanging event is fired whenever the current item is about to change.
Sample
This sample demonstrates the use of the bCancel parameter to cancel the changing of a TreeView item.
Procedure OnItemChanging Handle hItem Handle hItemOld Boolean ByRef bCancel
Move True to bCancel
End_Procedure