Changeset 6 for os/trunk/Applications/TestApplication.pas
- Timestamp:
- Jun 2, 2013, 5:41:42 PM (11 years ago)
- Location:
- os/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
os/trunk
- Property svn:ignore
-
old new 2 2 *.~dsk 3 3 __history 4 *.identcache
-
- Property svn:ignore
-
os/trunk/Applications/TestApplication.pas
r5 r6 4 4 5 5 uses 6 Vcl.Graphics, Xvcl.Controls, Xvcl.Classes, Xvcl.Forms, SysUtils;6 Vcl.Graphics, Xvcl.Controls, Xvcl.Classes, Xvcl.Forms, LDOS.Kernel, SysUtils; 7 7 8 8 type … … 12 12 Button: TButton; 13 13 Label1: TLabel; 14 Timer1: TTimer; 14 15 procedure Run; override; 15 16 procedure ButtonClick(Sender: TObject); … … 18 19 19 20 implementation 20 21 uses22 LDOS.Kernel;23 21 24 22 { TTestApplication } … … 43 41 Form2.Caption := 'Some form'; 44 42 Form2.Screen := Screen; 43 Timer1 := TTimer.Create; 44 Timer1.Interval := 1000; 45 Timer1.Enabled := True; 46 TScreen(Screen).Kernel.Timers.Add(Timer1); 45 47 Button := TButton.Create; 46 48 Button.Parent := Form1; … … 56 58 Label1.Caption := '0'; 57 59 Form1.Controls.Add(Label1); 60 MainForm := Form1; 58 61 TScreen(Screen).Forms.Add(Form1); 59 62 TScreen(Screen).Forms.Add(Form2);
Note:
See TracChangeset
for help on using the changeset viewer.