Changeset 16 for trunk/Apps
- Timestamp:
- Dec 28, 2017, 1:14:31 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Apps/UClock.pas
r13 r16 38 38 WindowId := API.WindowCreate; 39 39 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); 41 41 while not Task.Terminated do begin 42 42 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); 44 44 API.DrawText(CanvasId, TPoint.Create(10, 10), 'Text', 0); 45 45 Angle := Frac(Now / (10 * OneSecond)) * 2 * Pi; … … 69 69 WindowId := API.WindowCreate; 70 70 CanvasId := API.GetWindowCanvas(WindowId); 71 API.WindowSetAttr(WindowId, TRectangle.Create(1 00, 100, 300, 200), True);71 API.WindowSetAttr(WindowId, TRectangle.Create(120, 100, 400, 200), True); 72 72 while not Task.Terminated do begin 73 73 API.WriteText('test2');
Note:
See TracChangeset
for help on using the changeset viewer.