Changeset 8 for trunk/StudioPackage/Forms/UFormMain.pas
- Timestamp:
- Aug 3, 2012, 12:14:25 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/StudioPackage/Forms/UFormMain.pas
r7 r8 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus, 9 ActnList, ComCtrls, ExtCtrls ;9 ActnList, ComCtrls, ExtCtrls, UDataModule; 10 10 11 11 type … … 75 75 MenuItem9: TMenuItem; 76 76 OpenDialogFile: TOpenDialog; 77 PageControl 1: TPageControl;78 PageControl 2: TPageControl;79 PageControl 3: TPageControl;80 PageControl 4: TPageControl;77 PageControlRight: TPageControl; 78 PageControlLeft: TPageControl; 79 PageControlBottom: TPageControl; 80 PageControlCenter: TPageControl; 81 81 SaveDialogFile: TSaveDialog; 82 82 Splitter1: TSplitter; … … 96 96 procedure AViewProjectManagerExecute(Sender: TObject); 97 97 procedure AViewSettingsExecute(Sender: TObject); 98 procedure FormCreate(Sender: TObject); 98 99 procedure FormShow(Sender: TObject); 99 100 private 100 101 procedure DockInit; 101 102 public 102 { public declarations }103 procedure OpenFileExecute(OpenedFile: TOpenedFile); 103 104 end; 104 105 … … 111 112 112 113 uses 113 UFormProject, UFormSourceCode, UFormSettings , UDataModule;114 UFormProject, UFormSourceCode, UFormSettings; 114 115 115 116 { TFormMain } … … 123 124 begin 124 125 OpenDialogFile.Filter := DataModule1.FileTypes.GetDialogFilter; 125 if OpenDialogFile.Execute then ; 126 if OpenDialogFile.Execute then begin 127 DataModule1.OpenedFiles.OpenFile(OpenDialogFile.FileName); 128 end; 126 129 end; 127 130 … … 134 137 begin 135 138 FormSettings.ShowModal; 139 end; 140 141 procedure TFormMain.FormCreate(Sender: TObject); 142 begin 136 143 end; 137 144 … … 151 158 end; 152 159 160 procedure TFormMain.OpenFileExecute(OpenedFile: TOpenedFile); 161 var 162 NewTabSheet: TTabSheet; 163 begin 164 NewTabSheet := PageControlCenter.AddTabSheet; 165 OpenedFile.Form.ManualDock(NewTabSheet, nil, alClient); 166 OpenedFile.Form.Align := alClient; 167 OpenedFile.Form.Show; 168 end; 169 153 170 end. 154 171
Note:
See TracChangeset
for help on using the changeset viewer.