Ignore:
Timestamp:
Jun 2, 2013, 10:46:40 PM (11 years ago)
Author:
chronos
Message:
  • Added: Implemented simple TEdit control which react to key press messages.
File:
1 edited

Legend:

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

    r7 r8  
    1212    Button: TButton;
    1313    Label1: TLabel;
     14    Edit1: TEdit;
    1415    Timer1: TTimer;
    1516    procedure Run; override;
     
    5455  Button.Caption := 'Start';
    5556  Button.OnClick := ButtonClick;
    56   Form1.Controls.Add(Button);
    5757  Label1 := TLabel.Create;
    5858  Label1.Parent := Form1;
     
    6161  Label1.Visible := True;
    6262  Label1.Caption := '0';
    63   Form1.Controls.Add(Label1);
     63  Edit1 := TEdit.Create;
     64  Edit1.Parent := Form2;
     65  Edit1.Owner := Form2;
     66  Edit1.Bounds := TRectangle.Create(60, 80, 60, 24);
     67  Edit1.Visible := True;
     68  Edit1.Text := 'Text';
    6469  MainForm := Form1;
    6570  TScreen(Screen).Forms.Add(Form1);
Note: See TracChangeset for help on using the changeset viewer.