Ignore:
Timestamp:
Mar 10, 2011, 9:57:21 AM (13 years ago)
Author:
george
Message:
  • Fixed: Placing new form inside regions with different orientation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Docking/CoolDocking/URectangle.pas

    r178 r184  
    1818    function GetTopLeft: TPoint;
    1919    function GetTopRight: TPoint;
     20    function GetTRect: TRect;
    2021    function GetWidth: Integer;
    2122    procedure SetBottomLeft(const AValue: TPoint);
     
    2425    procedure SetTopLeft(const AValue: TPoint);
    2526    procedure SetTopRight(const AValue: TPoint);
     27    procedure SetTRect(const AValue: TRect);
    2628    procedure SetWidth(const AValue: Integer);
    2729  public
     
    3840    property BottomLeft: TPoint read GetBottomLeft write SetBottomLeft;
    3941    property BottomRight: TPoint read GetBottomRight write SetBottomRight;
     42
     43    property AsTRect: TRect read GetTRect write SetTRect;
    4044  end;
    4145
     
    7175  Result.X := Right;
    7276  Result.Y := Top;
     77end;
     78
     79function TRectangle.GetTRect: TRect;
     80begin
     81  Result.Left := Left;
     82  Result.Top := Top;
     83  Result.Bottom := Bottom;
     84  Result.Right := Right;
    7385end;
    7486
     
    107119end;
    108120
     121procedure TRectangle.SetTRect(const AValue: TRect);
     122begin
     123  Left := AValue.Left;
     124  Top := AValue.Top;
     125  Bottom := AValue.Bottom;
     126  Right := AValue.Right;
     127end;
     128
    109129procedure TRectangle.SetWidth(const AValue: Integer);
    110130begin
Note: See TracChangeset for help on using the changeset viewer.