Changeset 23 for branches/Xvcl/Applications
- Timestamp:
- May 8, 2013, 1:52:33 PM (12 years ago)
- Location:
- branches/Xvcl/Applications
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Xvcl/Applications
-
Property svn:ignore
set to
__history
-
Property svn:ignore
set to
-
branches/Xvcl/Applications/TestApplication.pas
r19 r23 8 8 type 9 9 TTestApplication = class(TApplication) 10 Form: TForm; 10 Form1: TForm; 11 Form2: TForm; 11 12 Button: TButton; 12 13 Label1: TLabel; … … 31 32 procedure TTestApplication.Run; 32 33 begin 33 Form := TForm.Create; 34 Form.Bounds := TRectangle.Create(50, 50, 100, 100); 35 Form.Name := 'Form1'; 36 Form.Caption := 'Test application'; 37 Form.Screen := Screen; 34 Form1 := TForm.Create; 35 Form1.Bounds := TRectangle.Create(50, 50, 100, 100); 36 Form1.Name := 'Form1'; 37 Form1.Caption := 'Test application'; 38 Form1.Screen := Screen; 39 Form2 := TForm.Create; 40 Form2.Bounds := TRectangle.Create(250, 150, 200, 150); 41 Form2.Name := 'Form1'; 42 Form2.Caption := 'Test application'; 43 Form2.Screen := Screen; 38 44 Button := TButton.Create; 39 Button.Parent := Form ;45 Button.Parent := Form1; 40 46 Button.Bounds := TRectangle.Create(50, 50, 60, 24); 41 47 Button.Visible := True; 42 48 Button.Caption := 'Start'; 43 49 Button.OnClick := ButtonClick; 44 Form .Controls.Add(Button);50 Form1.Controls.Add(Button); 45 51 Label1 := TLabel.Create; 46 Label1.Parent := Form ;52 Label1.Parent := Form1; 47 53 Label1.Bounds := TRectangle.Create(50, 70, 60, 24); 48 54 Label1.Visible := True; 49 55 Label1.Caption := '0'; 50 Form.Controls.Add(Label1); 51 TScreen(Screen).Forms.Add(Form); 56 Form1.Controls.Add(Label1); 57 Form2.Controls.Add(Label1); 58 TScreen(Screen).Forms.Add(Form1); 52 59 TScreen(Screen).Paint; 53 60 end;
Note:
See TracChangeset
for help on using the changeset viewer.