User Tools

Site Tools


api:dk11:delphi:vcl.giscontrolscale.tgis_controlscale

TGIS_ControlScale class

DK11 for Delphi | VCL.GisControlScale.TGIS_ControlScale | Classes | Constructors | Methods | Properties | Events

Visual control for displaying map scale.

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

Syntax

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

Inheritance

→ TCustomPanel

Implements

Constructors

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

Methods

Inherited Overrides Protected
Name Visibility Description
CreateCopy public Prepare a copy of the control for printing.
(Implements IGIS_PrintableControl.CreateCopy)
Draw public Draw scale.
DrawBmp public Draw control on a provided bitmap.
FreeCopy public Release the copy of the control.
(Implements IGIS_PrintableControl.FreeCopy)
Paint 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
Align published Standard VCL property.
Anchors published Standard VCL property.
BevelInner published Standard VCL property.
BevelOuter published Standard VCL property.
BevelWidth published Standard VCL property.
Bitmap public Bitmap. Valid only if control was created by Create with a parameter.
BorderStyle published Standard VCL property.
Color published Standard VCL property.
Ctl3D published Standard VCL property.
DividerColor1 published Color of the first divider.
DividerColor2 published Color of the second divider.
Dividers published Number of dividers.
DragCursor published Standard VCL property.
DragKind published Standard VCL property.
DragMode published Standard VCL property.
Enabled published Standard VCL property.
Font published Standard VCL property.
FullRepaint published Standard VCL property.
GIS_Viewer published Attached viewer.
Glow published Draw "glowing" shadow around scale.
HelpContext published Standard VCL property.
Hint published Standard VCL property.
InternalName public Used for internal use of TatukGIS.
(Implements IGIS_PrintableControl.InternalName)
ParentColor published Standard VCL property.
ParentCtl3D published Standard VCL property.
ParentFont published Standard VCL property.
ParentShowHint published Standard VCL property.
PopupMenu published Standard VCL property.
ShowHint published Standard VCL property.
TabOrder published Standard VCL property.
TabStop published Standard VCL property.
Touch published Standard VCL property.
Transparent published If True then control will be drawn as transparent.
Units public Units used for scale output.
UnitsEPSG published Units EPSG code for scale output.
Visible published Control visibility.

Events

Inherited Protected
Name Visibility Description
OnCanResize published Standard VCL event.
OnClick published Standard VCL event.
OnContextPopup published Standard VCL event.
OnDblClick published Standard VCL event.
OnDragDrop published Standard VCL event.
OnDragOver published Standard VCL event.
OnEndDrag published Standard VCL event.
OnEnter published Standard VCL event.
OnExit published Standard VCL event.
OnGesture published Standard VCL event.
OnKeyDown published Standard VCL event.
OnKeyPress published Standard VCL event.
OnKeyUp published Standard VCL event.
OnMouseDown published Standard VCL event.
OnMouseMove published Standard VCL event.
OnMouseUp published Standard VCL event.
OnMouseWheel published Standard VCL event.
OnMouseWheelDown published Standard VCL event.
OnMouseWheelUp published Standard VCL event.
OnResize published Standard VCL event.
OnStartDrag published Standard VCL event.
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.

2020/05/30 16:36