User Tools

Site Tools


api:dk11:python:tatukgis.pdk.tgis_controlscale

TGIS_ControlScale class

DK11 for Python | tatukgis.pdk.TGIS_ControlScale | Classes | Constructors | Methods | Properties | Events

Visual control for displaying map scale.

Available also on: Delphi FMX | .NET WinForms | Java | ActiveX.

Syntax

# Python
class TGIS_ControlScale( TStyledControl, IGIS_Subscribe, IGIS_PrintableControl ):

Inheritance

Implements

Constructors

Inherited Overrides Protected
Name Visibility Description
__init__ public Create the control.

Methods

Inherited Overrides Protected
Name Visibility Description
CreateCopy public Prepare a copy of the control for printing.
(Implements IGIS_PrintableControl.CreateCopy)
DrawBmp public Draw control on a provided bitmap
FreeCopy public Release the copy of the control.
(Implements IGIS_PrintableControl.FreeCopy)
PrintBmp public Print the control on the given bitmap.
(Implements IGIS_PrintableControl.PrintBmp)
PrintClipboard public Print control on the clipboard.
SubscribedEvent public Subscriber notification event.
(Implements IGIS_Subscribe.SubscribedEvent)

Properties

Inherited Protected
Name Visibility Description
DividerColor1 published Color of the first divider.
DividerColor2 published Color of the second divider.
Dividers published Number of dividers.
Font published Font of the text.
GIS_Viewer published Attached viewer.
Glow published Draw "glowing" shadow around scale.
InternalName published Used for internal use of TatukGIS.
(Implements IGIS_PrintableControl.InternalName)
ShadowColor published Color of the text shadow.
StyledSettings published Styled settings.
TextColor published Color of the text.
Units public Units used for scale output.
UnitsEPSG published Units EPSG code for scale output.

Events

Inherited Protected
Name Visibility Description
PrepareEvent published Event fired before calculating scale.

Remarks

Place this component on a form and connect GIS_Viewer to TGIS_ViewerWnd.

Based on TGIS_Viewer.CS units settings the component will try to compute the scale.

2024/05/17 01:50

Page Tools