Changeset 8 for trunk/Apps


Ignore:
Timestamp:
May 9, 2015, 1:32:38 AM (10 years ago)
Author:
chronos
Message:
  • Moved: Kernel related files moved to separate lazarus package named Kernel.
  • Modified: Implemented simple graphic device driver and drawin example.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Apps/UClock.pas

    r7 r8  
    2525  Message: TIPCMessage;
    2626  WindowId: Integer;
     27  Angle: Double;
    2728begin
    2829  Message := TIPCMessage.Create;
     
    3132  while not Task.Terminated do begin
    3233    API.WriteText('test');
    33     API.DrawText(Point(10, 10), 'Text');
    34     API.DrawLine(Point(20, 20), Point(100, 100));
    35     API.Sleep(OneSecond);
     34    API.DrawRect(Rect(60, 60, 180, 180), $ffffff);
     35    API.DrawText(Point(10, 10), 'Text', 0);
     36    Angle := Frac(Now / (10 * OneSecond)) * 2 * Pi;
     37    API.DrawLine(Point(120, 120), Point(Trunc(120 + Cos(Angle) * 60), Trunc(120 + Sin(Angle) * 60)), 0);
     38    API.Sleep(OneMillisecond * 100);
    3639    //API.ReadMessage(Message);
    3740  end;
Note: See TracChangeset for help on using the changeset viewer.