Changeset 3 for trunk/UFormMain.pas
- Timestamp:
- Apr 20, 2016, 9:25:55 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UFormMain.pas
r2 r3 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus, 9 ComCtrls, StdCtrls, ExtCtrls, ActnList, UAcronym, Contnrs; 9 ComCtrls, StdCtrls, ExtCtrls, ActnList, UAcronym, UPersistentForm, Contnrs, 10 URegistry, Registry; 10 11 11 12 type … … 23 24 MenuItem2: TMenuItem; 24 25 MenuItem3: TMenuItem; 26 PersistentForm1: TPersistentForm; 25 27 PopupMenu1: TPopupMenu; 26 28 TrayIcon1: TTrayIcon; … … 73 75 begin 74 76 AcronymDB.SaveToFile(DefaultFileName); 77 PersistentForm1.Save(Self); 75 78 end; 76 79 … … 103 106 104 107 procedure TFormMain.FormShow(Sender: TObject); 108 const 109 DefaultRegKey = '\Software\Acronym Decoder'; 105 110 begin 111 PersistentForm1.RegistryContext := RegContext(HKEY_CURRENT_USER, DefaultRegKey); 112 PersistentForm1.Load(Self); 106 113 if FileExists(DefaultFileName) then 107 114 AcronymDB.LoadFromFile(DefaultFileName);
Note:
See TracChangeset
for help on using the changeset viewer.