Changeset 8 for trunk/Apps
- Timestamp:
- May 9, 2015, 1:32:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Apps/UClock.pas
r7 r8 25 25 Message: TIPCMessage; 26 26 WindowId: Integer; 27 Angle: Double; 27 28 begin 28 29 Message := TIPCMessage.Create; … … 31 32 while not Task.Terminated do begin 32 33 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); 36 39 //API.ReadMessage(Message); 37 40 end;
Note:
See TracChangeset
for help on using the changeset viewer.