Changeset 7 for trunk/UFormMain.pas
- Timestamp:
- Sep 26, 2019, 9:36:37 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UFormMain.pas
r6 r7 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus, 9 ActnList, ExtCtrls, StdCtrls, UGame ;9 ActnList, ExtCtrls, StdCtrls, UGame, UPersistentForm, UApplicationInfo; 10 10 11 11 type … … 17 17 AGameNew: TAction; 18 18 ActionList1: TActionList; 19 ApplicationInfo1: TApplicationInfo; 19 20 MainMenu1: TMainMenu; 20 21 MenuItem1: TMenuItem; 21 22 MenuItem2: TMenuItem; 22 23 MenuItemGame: TMenuItem; 24 PersistentForm1: TPersistentForm; 23 25 procedure AExitExecute(Sender: TObject); 24 26 procedure AGameNewExecute(Sender: TObject); 27 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 25 28 procedure FormCreate(Sender: TObject); 26 29 procedure FormDestroy(Sender: TObject); … … 79 82 end; 80 83 84 procedure TFormMain.FormClose(Sender: TObject; var CloseAction: TCloseAction); 85 begin 86 PersistentForm1.Save(Self); 87 end; 88 81 89 procedure TFormMain.AExitExecute(Sender: TObject); 82 90 begin … … 99 107 procedure TFormMain.FormShow(Sender: TObject); 100 108 begin 109 PersistentForm1.RegistryContext := ApplicationInfo1.GetRegistryContext; 110 PersistentForm1.Load(Self); 101 111 Game.New; 102 112 {
Note:
See TracChangeset
for help on using the changeset viewer.