Ignore:
Timestamp:
May 8, 2013, 1:52:33 PM (12 years ago)
Author:
chronos
Message:
  • Added: Support for mouse move handling. Now forms can be moved by dragging title bar.
  • Fixed: Clearing background during painting in screen and forms.
Location:
branches/Xvcl/Applications
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/Xvcl/Applications

    • Property svn:ignore set to
      __history
  • branches/Xvcl/Applications/TestApplication.pas

    r19 r23  
    88type
    99  TTestApplication = class(TApplication)
    10     Form: TForm;
     10    Form1: TForm;
     11    Form2: TForm;
    1112    Button: TButton;
    1213    Label1: TLabel;
     
    3132procedure TTestApplication.Run;
    3233begin
    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;
    3844  Button := TButton.Create;
    39   Button.Parent := Form;
     45  Button.Parent := Form1;
    4046  Button.Bounds := TRectangle.Create(50, 50, 60, 24);
    4147  Button.Visible := True;
    4248  Button.Caption := 'Start';
    4349  Button.OnClick := ButtonClick;
    44   Form.Controls.Add(Button);
     50  Form1.Controls.Add(Button);
    4551  Label1 := TLabel.Create;
    46   Label1.Parent := Form;
     52  Label1.Parent := Form1;
    4753  Label1.Bounds := TRectangle.Create(50, 70, 60, 24);
    4854  Label1.Visible := True;
    4955  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);
    5259  TScreen(Screen).Paint;
    5360end;
Note: See TracChangeset for help on using the changeset viewer.