OnShapeMouseResized

<< Click to Display Table of Contents >>

Navigation:  TMyCAD > Events >

OnShapeMouseResized

TShapeDraggingSizingRotating= procedure (AShape:TMyShape;FromPoint:TPoint;var ToPoint:TPoint ) of object;

 

property OnShapeMouseResizing:TShapeDraggingSizingRotating

 

Description:

 

When a shape is resizing by mouse, this event be trigger.

 

Example:

 

 

procedure TForm1.MyCAD1ShapeMouseResized(AShape: TMyShape; FromPoint:TPoint;var ToPoint: TPoint);

begin

 Memo1.Lines.Add('---------Resized Event---------------');

 Memo1.Lines.Add('ShapeId is: '+Inttostr(AShape.ShapeId)+AShape.Name +' resized,'+

  'From x:'+ inttostr(FromPoint.x)+' y:' +inttostr(FromPoint.y)+

  'To x:'+ inttostr(ToPoint.x)+' y:' +inttostr(ToPoint.y));

end;