DK for Delphi | GisLayerVector.TGIS_CursorEvent | Methods | Classes | Prototypes
Callback type for cursor lifecycle notifications in vector layers.
// Delphi type TGIS_CursorEvent = procedure ( _sender : TObject; _cursor : Integer ) of object;
// C++ Builder typedef void (_closure *TGIS_CursorEvent)( TObject* _sender, int _cursor );
| Name | Type | Description |
|---|---|---|
| _sender | TObject | sender object, typically the TGIS_LayerVector instance raising the event |
| _cursor | Integer | cursor identifier returned by CursorOpen |
PURPOSE: Defines the callback signature for notifications related to cursor creation, use, and cleanup during vector layer iteration.
BEHAVIOR: The layer invokes this event for cursor lifecycle points such as opening and closing. The callback receives the sender and the numeric cursor identifier so related state can be tracked.
CONSTRAINTS: The cursor identifier is meaningful only while the cursor exists. Handlers should avoid long-running work because they execute synchronously within cursor management operations.