User Tools

Site Tools


api:dk11:delphi:fmx.giscontrolscale.tgis_controlscaleprepareevent_tgis_point_tgis_point_double_string

Table of Contents



TGIS_ControlScalePrepareEvent prototype

DK for Delphi | FMX.GisControlScale.TGIS_ControlScalePrepareEvent | Classes | Prototypes

Event fired before the map scale distance and display units are finalized.

Syntax

// Delphi
type
  TGIS_ControlScalePrepareEvent = procedure (
    const _ptA : TGIS_Point;
    const _ptB : TGIS_Point;
    var _distance : Double;
    var _units : String
  ) of object;
// C++ Builder
typedef void (_closure *TGIS_ControlScalePrepareEvent)(
  TGIS_Point* const _ptA,
  TGIS_Point* const _ptB,
  double &_distance,
  UnicodeString &_units
);

Parameters

Name Type Description
_ptA TGIS_Point Starting point of the measured scale segment.
_ptB TGIS_Point Ending point of the measured scale segment.
_distance Double Computed distance for the scale display; may be adjusted by the event handler.
_units String Display units string for the scale output; may be adjusted by the event handler.
2026/07/11 00:18

Page Tools