Changeset 8 for os/trunk/Applications
- Timestamp:
- Jun 2, 2013, 10:46:40 PM (12 years ago)
- Location:
- os/trunk/Applications
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
os/trunk/Applications/TestApplication.pas
r7 r8 12 12 Button: TButton; 13 13 Label1: TLabel; 14 Edit1: TEdit; 14 15 Timer1: TTimer; 15 16 procedure Run; override; … … 54 55 Button.Caption := 'Start'; 55 56 Button.OnClick := ButtonClick; 56 Form1.Controls.Add(Button);57 57 Label1 := TLabel.Create; 58 58 Label1.Parent := Form1; … … 61 61 Label1.Visible := True; 62 62 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'; 64 69 MainForm := Form1; 65 70 TScreen(Screen).Forms.Add(Form1); -
os/trunk/Applications/UDesktop.pas
r7 r8 90 90 TaskBar.Visible := True; 91 91 TaskBar.Caption := 'dds'; 92 MainBar.Controls.Add(TaskBar);93 92 MenuButton := TButton.Create; 94 MenuButton.Parent := TaskBar;95 MenuButton.Owner := TaskBar;93 MenuButton.Parent := MainBar; 94 MenuButton.Owner := MainBar; 96 95 MenuButton.Bounds := TRectangle.Create(0, 0, 50, 24); 97 96 MenuButton.Visible := True; 98 97 MenuButton.Caption := 'Menu'; 99 98 MenuButton.OnClick := ButtonClick; 100 MainBar.Controls.Add(MenuButton);101 99 TScreen(Screen).Forms.Add(MainBar); 102 100 MainForm := MainBar;
Note:
See TracChangeset
for help on using the changeset viewer.