Ignore:
Timestamp:
Mar 21, 2011, 10:23:24 AM (14 years ago)
Author:
george
Message:
  • Fixed: Tabs image indexes.
  • Fixed: Destroying Tabs managed conjoin form.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Docking/CoolDocking/Common/URectangle.pas

    r204 r213  
    11unit URectangle;
    22
    3 {$mode objfpc}{$H+}
     3// Date: 2011-03-20
     4
     5{$mode Delphi}{$H+}
    46
    57interface
     
    3436
    3537    procedure Assign(Source: TRectangle);
     38    function IsInside(Pos: TPoint): Boolean;
    3639
    3740    property Width: Integer read GetWidth write SetWidth;
     
    142145end;
    143146
     147function TRectangle.IsInside(Pos: TPoint): Boolean;
     148begin
     149  Result := (Pos.X >= Left) and (Pos.Y >= Top) and
     150    (Pos.X <= Right) and (Pos.Y <= Bottom);
     151end;
     152
    144153end.
    145154
Note: See TracChangeset for help on using the changeset viewer.