User Tools

Site Tools


api:dk11:delphi:gislayervector.tgis_cursorevent_tobject_integer

Table of Contents



TGIS_CursorEvent prototype

DK for Delphi | GisLayerVector.TGIS_CursorEvent | Methods | Classes | Prototypes

Callback type for cursor lifecycle notifications in vector layers.

Available also on: .NET | Java | Python.

Syntax

// Delphi
type
  TGIS_CursorEvent = procedure (
    _sender : TObject;
    _cursor : Integer
  ) of object;
// C++ Builder
typedef void (_closure *TGIS_CursorEvent)(
  TObject* _sender,
  int _cursor
);

Parameters

Name Type Description
_sender TObject sender object, typically the TGIS_LayerVector instance raising the event
_cursor Integer cursor identifier returned by CursorOpen

Remarks

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.

2026/07/11 00:39

Page Tools