Ignore:
Timestamp:
May 8, 2013, 2:53:22 PM (11 years ago)
Author:
chronos
Message:
  • Fixed: Make only one form focused at once.
  • Modified: Enhanced TList generic class to support more methods.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Xvcl/Applications/TestApplication.pas

    r23 r24  
    3333begin
    3434  Form1 := TForm.Create;
    35   Form1.Bounds := TRectangle.Create(50, 50, 100, 100);
     35  Form1.Bounds := TRectangle.Create(50, 80, 200, 120);
    3636  Form1.Name := 'Form1';
    3737  Form1.Caption := 'Test application';
    3838  Form1.Screen := Screen;
    3939  Form2 := TForm.Create;
    40   Form2.Bounds := TRectangle.Create(250, 150, 200, 150);
    41   Form2.Name := 'Form1';
    42   Form2.Caption := 'Test application';
     40  Form2.Bounds := TRectangle.Create(350, 150, 200, 150);
     41  Form2.Name := 'Form2';
     42  Form2.Caption := 'Some form';
    4343  Form2.Screen := Screen;
    4444  Button := TButton.Create;
     
    5151  Label1 := TLabel.Create;
    5252  Label1.Parent := Form1;
    53   Label1.Bounds := TRectangle.Create(50, 70, 60, 24);
     53  Label1.Bounds := TRectangle.Create(60, 80, 60, 24);
    5454  Label1.Visible := True;
    5555  Label1.Caption := '0';
    5656  Form1.Controls.Add(Label1);
    57   Form2.Controls.Add(Label1);
    5857  TScreen(Screen).Forms.Add(Form1);
     58  TScreen(Screen).Forms.Add(Form2);
    5959  TScreen(Screen).Paint;
    6060end;
Note: See TracChangeset for help on using the changeset viewer.