Changeset 197 for Docking/CoolDocking/Demo/IDE/UMainForm.pas
- Timestamp:
- Mar 16, 2011, 7:47:27 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Demo/IDE/UMainForm.pas
r189 r197 15 15 16 16 const 17 DefaultLayoutName = 'Default Layout'; 17 18 DockLayoutFileName = 'Layout.xml'; 18 19 … … 23 24 TMainForm = class(TForm) 24 25 published 26 AResetDefaultLayout: TAction; 25 27 AViewComponentTree: TAction; 26 28 AExit: TAction; … … 65 67 MenuItem26: TMenuItem; 66 68 MenuItem27: TMenuItem; 69 MenuItem28: TMenuItem; 67 70 MenuItem9: TMenuItem; 68 71 MenuItem8: TMenuItem; … … 83 86 procedure AExitExecute(Sender: TObject); 84 87 procedure ANewFileExecute(Sender: TObject); 88 procedure AResetDefaultLayoutExecute(Sender: TObject); 85 89 procedure AViewComponentTreeExecute(Sender: TObject); 86 90 procedure AViewThreadStatusExecute(Sender: TObject); … … 148 152 149 153 procedure TMainForm.InitDefaultDockLayout; 150 const151 DefaultLayoutName = 'Default Layout';152 154 var 153 155 NewContainer1: TCDConjoinForm; … … 241 243 end; 242 244 245 procedure TMainForm.AResetDefaultLayoutExecute(Sender: TObject); 246 var 247 DefaultLayout: TCDLayout; 248 begin 249 DefaultLayout := CoolDockLayoutList1.FindByName(DefaultLayoutName); 250 if Assigned(DefaultLayout) then 251 CoolDockLayoutList1.Items.Remove(DefaultLayout); 252 InitDefaultDockLayout; 253 end; 254 243 255 procedure TMainForm.AViewComponentTreeExecute(Sender: TObject); 244 256 begin
Note:
See TracChangeset
for help on using the changeset viewer.