User Tools

Site Tools


api:dk11:delphi:gislayervector.tgis_shapeposevent_tobject_tgis_shape_tgis_labelposition_tpoint_trect

Table of Contents

TGIS_ShapePosEvent prototype

DK11 for Delphi | GisLayerVector.TGIS_ShapePosEvent | Methods | Classes | Prototypes

Standard event for OnPaintLabelPos. Label position can be modified by changing _pt value.

Syntax

// Delphi
type
  TGIS_ShapePosEvent = procedure (
    _sender : TObject;
    _shape : TGIS_Shape;
    _pos : TGIS_LabelPosition;
    var _pt : TPoint;
    const _rct : TRect
  ) of object;
// C++ Builder
typedef void (_closure *TGIS_ShapePosEvent)(
  TObject* _sender,
  TGIS_Shape* _shape,
  TGIS_LabelPosition* _pos,
  TPoint* &_pt,
  TRect* const _rct
);

Parameters

Name Type Description
_sender TObject sender object
_shape TGIS_Shape shape to which event is related
_pos TGIS_LabelPosition desired position of label
_pt TPoint label position; can be modified
_rct TRect Precalculated label rectangle; use a a hint for label size
2018/03/05 21:13

Page Tools