Changeset 8 for os/trunk/Applications


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.
Location:
os/trunk/Applications
Files:
2 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);
  • os/trunk/Applications/UDesktop.pas

    r7 r8  
    9090  TaskBar.Visible := True;
    9191  TaskBar.Caption := 'dds';
    92   MainBar.Controls.Add(TaskBar);
    9392  MenuButton := TButton.Create;
    94   MenuButton.Parent := TaskBar;
    95   MenuButton.Owner := TaskBar;
     93  MenuButton.Parent := MainBar;
     94  MenuButton.Owner := MainBar;
    9695  MenuButton.Bounds := TRectangle.Create(0, 0, 50, 24);
    9796  MenuButton.Visible := True;
    9897  MenuButton.Caption := 'Menu';
    9998  MenuButton.OnClick := ButtonClick;
    100   MainBar.Controls.Add(MenuButton);
    10199  TScreen(Screen).Forms.Add(MainBar);
    102100  MainForm := MainBar;
Note: See TracChangeset for help on using the changeset viewer.