User Tools

Site Tools


TGIS_ControlScale class

DK11 for .NET | TatukGIS.NDK.WinForms.TGIS_ControlScale | Classes | Constructors | Methods | Properties | Events

Visual control for displaying map scale.

Available also on: Delphi FMX | Java | ActiveX | Python.


// C#
public class TGIS_ControlScale : System.Windows.Forms.Panel, IGIS_Subscribe, IGIS_PrintableControl 
' VisualBasic
Public Class TGIS_ControlScale
  Inherits System.Windows.Forms.Panel
  Implements IGIS_Subscribe
  Implements IGIS_PrintableControl
End Class
// Oxygene
  [Description('Visual control for displaying map scale.')]
  TGIS_ControlScale = public class( System.Windows.Forms.Panel, IGIS_Subscribe, IGIS_PrintableControl )


→ System.Windows.Forms.Panel



Inherited Overrides Protected
Name Visibility Description
TGIS_ControlScale() public Create the control.


Inherited Overrides Protected
Name Visibility Description
CreateCopy public Prepare a copy of the control for printing.
(Implements IGIS_PrintableControl.CreateCopy)
Dispose protected Clean up any resources being used.
doCreate protected Create form.
Draw public Draw scale.
DrawBmp public Draw control on a provided bitmap.
FreeCopy public Release the copy of the control.
(Implements IGIS_PrintableControl.FreeCopy)
OnPaint protected Paint the control.
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)
Update public Update the control.


Inherited Protected
Name Visibility Description
Bitmap public Bitmap. Valid only if control was created by Create with a parameter.
DividerColor1 public Color of the first divider.
DividerColor2 public Color of the second divider.
Dividers public Number of dividers.
GIS_Viewer public Attached viewer.
Glow public Draw "glowing" shadow around scale.
InternalName public Used for internal use of TatukGIS.
(Implements IGIS_PrintableControl.InternalName)
Transparent public If True then control will be drawn as transparent.
Units public Units used for scale output.
UnitsEPSG public Units EPSG code for scale output.
Visible public Turn control on/off.


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


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.

2022/11/16 01:38

Page Tools