User Tools

Site Tools


api:dk11:delphi:fmx.giscontrolscale.tgis_controlscale



TGIS_ControlScale class

DK for Delphi | FMX.GisControlScale.TGIS_ControlScale | Classes | Constructors | Methods | Properties | Events

FMX visual control for displaying map scale information for an attached viewer.

Available also on: .NET WinForms | Java | ActiveX | Python.

Syntax

// Delphi
type
  [ComponentPlatformsAttribute(pidAllPlatforms)]
  TGIS_ControlScale = class( TStyledControl, IGIS_Subscribe, IGIS_PrintableControl )
  end;
// C++ Builder
class PASCALIMPLEMENTATION TGIS_ControlScale : public TStyledControl
{
};

Inheritance

→ TStyledControl

Implements

Constructors

Inherited Overrides Protected
Name Visibility Description
Create public Creates the scale control.
Destroy public Destroys the scale control.

Methods

Inherited Overrides Protected
Name Visibility Description
CreateCopy public Prepare a copy of the control for printing.
(Implements IGIS_PrintableControl.CreateCopy)
DoPaint protected Paints the scale control.
DrawBmp public Draws the scale control on a provided bitmap.
FreeCopy public Release a copy of the control created for printing.
(Implements IGIS_PrintableControl.FreeCopy)
PrintBmp public Print the control on the given bitmap.
(Implements IGIS_PrintableControl.PrintBmp)
PrintClipboard public Prints the control to the clipboard.
PrintPdf public Print the control on the given PDF context.
(Implements IGIS_PrintableControl.PrintPdf)
SubscribedEvent public Handles a viewer subscription notification.
(Implements IGIS_Subscribe.SubscribedEvent)

Properties

Inherited Protected
Name Visibility Description
Align published Standard FMX property.
Anchors published Standard FMX property.
ClipChildren published Standard FMX property.
ClipParent published Standard FMX property.
Cursor published Standard FMX property.
DividerColor1 published Color of the first divider.
DividerColor2 published Color of the second divider.
Dividers published Number of dividers.
DragMode published Standard FMX property.
Enabled published Standard FMX property.
EnableDragHighlight published Standard FMX property.
Font published Font of the text.
GIS_Viewer published Viewer to which the scale control is attached.
Glow published Draws a glowing shadow around the scale.
Height published Standard FMX property.
HitTest published Standard FMX property.
InternalName published Used internally by TatukGIS.
(Implements IGIS_PrintableControl.InternalName)
Locked published Standard FMX property.
Margins published Standard FMX property.
Opacity published Standard FMX property.
Padding published Standard FMX property.
PopupMenu published Standard FMX property.
Position published Standard FMX property.
RotationAngle published Standard FMX property.
RotationCenter published Standard FMX property.
Scale published Standard FMX property.
ShadowColor published Color of the text shadow.
Size published Standard FMX property.
TextColor published Color of the text.
Units public Units used for scale output.
UnitsEPSG published EPSG (European Petroleum Survey Group) code defining the units used for scale output.
Visible published Standard FMX property.
Width published Standard FMX property.

Events

Inherited Protected
Name Visibility Description
OnClick published Standard FMX event.
OnDblClick published Standard FMX event.
OnDragDrop published Standard FMX event.
OnDragEnd published Standard FMX event.
OnDragEnter published Standard FMX event.
OnDragLeave published Standard FMX event.
OnDragOver published Standard FMX event.
OnMouseDown published Standard FMX event.
OnMouseEnter published Standard FMX event.
OnMouseLeave published Standard FMX event.
OnMouseMove published Standard FMX event.
OnMouseUp published Standard FMX event.
OnMouseWheel published Standard FMX event.
OnPaint published Standard FMX event.
OnPainting published Standard FMX event.
OnResize published Standard FMX event.
PrepareEvent published Fired before preparing and calculating the scale.

Remarks

PURPOSE: Displays a scale bar and scale text that reflect the current map view in a connected TGIS_ViewerWnd instance.

BEHAVIOR: The control updates its presentation from viewer state and computes distances using TGIS_Viewer.CS units settings.

USAGE: Place the control on a form and connect GIS_Viewer to a TGIS_ViewerWnd component.

CONSTRAINTS: Scale computation depends on TGIS_Viewer.CS units settings. GIS_Viewer should be connected to TGIS_ViewerWnd.

2026/08/30 01:46

Page Tools