Class TCustomModifyGeometryTool

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TCustomModifyGeometryTool = class(TCustomEditScreenObjectTool)

Description

TCustomModifyGeometryTool is meant to be the abstract ancestor of tools that need to edit TScreenObjects .

Hierarchy

Overview

Methods

Private function GetEdge(const X, Y: integer): integer;
Protected procedure DoEdit(const X,Y: integer); virtual; abstract;
Protected procedure SetCursorAtLocation(const X, Y: Integer); virtual; abstract;
Public procedure MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); 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;

Description

Methods

Private function GetEdge(const X, Y: integer): integer;

GetEdge returns an index to the edge of the selected TScreenObject that is at X,Y. If there isn't an edge at X,Y, GetEdge returns -1.

Protected procedure DoEdit(const X,Y: integer); virtual; abstract;

In descendants, DoEdit is used to edit a TScreenObject.

Protected procedure SetCursorAtLocation(const X, Y: Integer); virtual; abstract;

In descendants, SetCursorAtLocation is used to set a different cursor at different locations.

Public procedure MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override;

MouseDown responds to OnMouseDown events by selecting the TScreenObject under the cursor.

Public procedure MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); override;

MouseMove responds to OnMouseMove events by changing the cursor depending on whether or not the mouse is over a TScreenObject or not. See SetCursorAtLocation.

Public procedure MouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override;

MouseUp responds to OnMouseUp events editing the TScreenObject under the cursor. See DoEdit.


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