Ignore:
Timestamp:
Jun 2, 2013, 6:59:07 PM (11 years ago)
Author:
chronos
Message:
  • Fixed: Components now have list of childs and free them on destruction.
  • Fixed: Memory leaks.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • os/trunk/Applications/TestApplication.pas

    r6 r7  
    3232  Caption := 'TestApp';
    3333  Form1 := TForm.Create;
     34  Form1.Owner := Self;
    3435  Form1.Bounds := TRectangle.Create(50, 80, 200, 120);
    3536  Form1.Name := 'Form1';
     
    3738  Form1.Screen := Screen;
    3839  Form2 := TForm.Create;
     40  Form2.Owner := Self;
    3941  Form2.Bounds := TRectangle.Create(350, 150, 200, 150);
    4042  Form2.Name := 'Form2';
     
    4749  Button := TButton.Create;
    4850  Button.Parent := Form1;
     51  Button.Owner := Form1;
    4952  Button.Bounds := TRectangle.Create(50, 50, 60, 24);
    5053  Button.Visible := True;
     
    5457  Label1 := TLabel.Create;
    5558  Label1.Parent := Form1;
     59  Label1.Owner := Form1;
    5660  Label1.Bounds := TRectangle.Create(60, 80, 60, 24);
    5761  Label1.Visible := True;
Note: See TracChangeset for help on using the changeset viewer.