User Tools

Site Tools


api:dk11:net:tatukgis.ndk.winforms.tgis_controlscale

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 | Delphi VCL | .NET WPF | Java.

Syntax

// 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
type
  [Description('Visual control for displaying map scale.')]
  [ToolboxBitmap(typeOf(TGIS_ControlScale))]
  TGIS_ControlScale = public class( System.Windows.Forms.Panel, IGIS_Subscribe, IGIS_PrintableControl )
  end;

Inheritance

→ System.Windows.Forms.Panel

Implements

Constructors

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

Methods

Inherited Overrides Protected
Name Visibility Description
Dispose protected Clean up any resources being used.
doCreate protected Create form.
Draw public Draw scale.
DrawBmp public Draw control on a provided bitmap.
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.

Properties

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.
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.

Events

Inherited Protected
Name Visibility Description
PrepareEvent public 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.

2019/01/25 17:13