Changeset 132 for trunk/Forms
- Timestamp:
- Jun 19, 2017, 10:06:50 AM (7 years ago)
- Location:
- trunk/Forms
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.lfm
r128 r132 1 1 object FormMain: TFormMain 2 Left = 7842 Left = 577 3 3 Height = 621 4 Top = 4354 Top = 309 5 5 Width = 775 6 6 Caption = 'xTactics' 7 ClientHeight = 5 897 ClientHeight = 596 8 8 ClientWidth = 775 9 9 Menu = MainMenu1 10 OnActivate = FormActivate11 10 OnClose = FormClose 12 11 OnCreate = FormCreate … … 14 13 OnKeyUp = FormKeyUp 15 14 OnShow = FormShow 16 LCLVersion = '1.6. 4.0'15 LCLVersion = '1.6.2.0' 17 16 WindowState = wsMaximized 18 17 object StatusBar1: TStatusBar 19 18 Left = 0 20 19 Height = 28 21 Top = 56 120 Top = 568 22 21 Width = 775 23 22 Panels = < … … 35 34 object ToolBar1: TToolBar 36 35 Left = 0 37 Height = 56 136 Height = 568 38 37 Top = 0 39 38 Width = 80 … … 118 117 object PaintBox1: TPaintBox 119 118 Left = 80 120 Height = 56 1119 Height = 568 121 120 Top = 0 122 121 Width = 695 -
trunk/Forms/UFormMain.pas
r128 r132 75 75 procedure AZoomInExecute(Sender: TObject); 76 76 procedure AZoomOutExecute(Sender: TObject); 77 procedure FormActivate(Sender: TObject);78 77 procedure FormShow(Sender: TObject); 79 78 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); … … 242 241 end; 243 242 244 procedure TFormMain.FormActivate(Sender: TObject);245 begin246 if not Core.Initialized then begin247 Core.Init;248 end;249 end;250 251 243 procedure TFormMain.AZoomAllExecute(Sender: TObject); 252 244 var … … 313 305 begin 314 306 Core.Game.Running := False; 307 Core.PersistentForm.Save(Self); 315 308 SaveConfig(Core.XMLConfig1, 'FormMain'); 316 Core. PersistentForm.Save(Self);309 Core.XMLConfig1.Flush; 317 310 end; 318 311 … … 334 327 procedure TFormMain.FormShow(Sender: TObject); 335 328 begin 336 Core. XMLConfig1.Filename := 'Config.xml';329 Core.Init; 337 330 LoadConfig(Core.XMLConfig1, 'FormMain'); 338 Core.PersistentForm.Load(Self, True);331 Core.PersistentForm.Load(Self, wsMaximized); 339 332 ReloadView; 340 333 Redraw;
Note:
See TracChangeset
for help on using the changeset viewer.