Class TRulerTool

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TRulerTool = class(TCustomInteractiveTool)

Description

no description available, TCustomInteractiveTool description follows

TCustomInteractiveTool is an abstract base class. Its descendants (mainly in InteractiveTools) handle on-screen interaction between the user and the grid or TScreenObjects.

The main procedures in which the interaction is handled are MouseDown, MouseMove and MouseUp. These are called in TframeView.ZoomBoxImage32MouseDown, TframeView.ZoomBoxImage32MouseMove, and TframeView.ZoomBoxImage32MouseUp.

The hints in TfrmGoPhast.frameTopView, TfrmGoPhast.frameFrontView, and TfrmGoPhast.frameSideView are set by the current tool via GetHint, Activate, and Deactivate.

See also
CurrentTool
CurrentTool is the TCustomInteractiveTool that is currently being used to handle the user interaction with TframeView.ZoomBox.

Hierarchy

Overview

Fields

Private FLine: TSimpleLine;
Private FDoubleClicked: Boolean;
Private FRect: TRect;

Methods

Private procedure ShowHint;
Protected procedure DrawOnBitMap32(Sender: TObject; Buffer: TBitmap32); override;
Protected function GetHint: string; override;
Public procedure Activate; override;
Public procedure Deactivate; override;
Public Destructor Destroy; override;
Public procedure DoubleClick(Sender: TObject); override;
Public procedure MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); override;
Public procedure MouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override;
Public procedure DeleteLastSavedPoint;

Description

Fields

Private FLine: TSimpleLine;
 
Private FDoubleClicked: Boolean;
 
Private FRect: TRect;
 

Methods

Private procedure ShowHint;
 
Protected procedure DrawOnBitMap32(Sender: TObject; Buffer: TBitmap32); override;
 
Protected function GetHint: string; override;
 
Public procedure Activate; override;
 
Public procedure Deactivate; override;
 
Public Destructor Destroy; override;
 
Public procedure DoubleClick(Sender: TObject); override;
 
Public procedure MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); override;
 
Public procedure MouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override;
 
Public procedure DeleteLastSavedPoint;
 

Generated by PasDoc 0.12.1 on 2013-05-13 15:41:43