Ignore:
Timestamp:
Dec 29, 2018, 10:12:23 PM (5 years ago)
Author:
chronos
Message:
  • Added: Adjustable form size by dragging its border.
  • Added: Basic controls inside form like button, edit, title.
Location:
branches/overos
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/overos

    • Property svn:ignore set to
      overos
      lib
      overos.lps
      overos.res
  • branches/overos/UTypes.pas

    r20 r21  
    1616    Height: Integer;
    1717    function Create(Width, Height: Integer): TSize;
     18    class operator Add(A, B: TSize): TSize;
     19    class operator Subtract(A, B: TSize): TSize;
    1820  end;
    1921
     
    3638    function Contains(Position: TPosition): Boolean;
    3739  end;
    38 
    39   TColor = Integer;
    4040
    4141
     
    8686end;
    8787
     88class operator TSize.Add(A, B: TSize): TSize;
     89begin
     90  Result.Width := A.Width + B.Width;
     91  Result.Height := A.Height + B.Height;
     92end;
     93
     94class operator TSize.Subtract(A, B: TSize): TSize;
     95begin
     96  Result.Width := A.Width - B.Width;
     97  Result.Height := A.Height - B.Height;
     98end;
     99
    88100
    89101end.
Note: See TracChangeset for help on using the changeset viewer.