|
TBaseVirtualTree.AdviseChangeEvent Method
Used to register a delayed change event.
Pascal
procedure AdviseChangeEvent(StructureChange: Boolean; Node: PVirtualNode; Reason: TChangeReason); virtual;
Description
Often there can be many change events in a row and calling the application for each of them might be too time costly. So they are by default accumulated until a certain time has elapsed (ChangeDelay) or, if BeginUpdate was called, until EndUpdate is executed. If StructureChange is False then we have a selection change event (without a specific reason) otherwise it is a structure change.
There are two possibilities to avoid delayed change events. One is the permanent way by setting ChangeDelay to 0, the other one is to enter the synchronous mode by calling BeginSynch.
Class
Links
What do you think about this topic? Send feedback!
|