Changeset 16 for trunk/Apps


Ignore:
Timestamp:
Dec 28, 2017, 1:14:31 AM (7 years ago)
Author:
chronos
Message:
  • Added: API function DrawFrame.
  • Fixed: Drawing position of TWindow frame.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Apps/UClock.pas

    r13 r16  
    3838  WindowId := API.WindowCreate;
    3939  CanvasId := API.GetWindowCanvas(WindowId);
    40   API.WindowSetAttr(WindowId, TRectangle.Create(100, 50, 300, 200), True);
     40  API.WindowSetAttr(WindowId, TRectangle.Create(100, 150, 300, 200), True);
    4141  while not Task.Terminated do begin
    4242    API.WriteText('test');
    43     API.DrawRect(CanvasId, TRectangle.Create(60, 60, 180, 180), $ffffff);
     43    API.DrawRect(CanvasId, TRectangle.Create(60, 60, 180, 180), $b0ffff);
    4444    API.DrawText(CanvasId, TPoint.Create(10, 10), 'Text', 0);
    4545    Angle := Frac(Now / (10 * OneSecond)) * 2 * Pi;
     
    6969  WindowId := API.WindowCreate;
    7070  CanvasId := API.GetWindowCanvas(WindowId);
    71   API.WindowSetAttr(WindowId, TRectangle.Create(100, 100, 300, 200), True);
     71  API.WindowSetAttr(WindowId, TRectangle.Create(120, 100, 400, 200), True);
    7272  while not Task.Terminated do begin
    7373    API.WriteText('test2');
Note: See TracChangeset for help on using the changeset viewer.