Changeset 13 for trunk/UFormMain.pas
- Timestamp:
- May 9, 2014, 12:37:10 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 3 3 LinuxBuilder.lps 4 4 LinuxBuilder.res 5 backup
-
- Property svn:ignore
-
trunk/UFormMain.pas
r12 r13 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus, 9 ActnList, ComCtrls, StdCtrls, UKConfig, ULastOpenedList, URegistry, Registry ;9 ActnList, ComCtrls, StdCtrls, UKConfig, ULastOpenedList, URegistry, Registry2; 10 10 11 11 const … … 67 67 procedure LastOpenedListCompareChange(Sender: TObject); 68 68 procedure LastOpenedListOpenChange(Sender: TObject); 69 procedure MenuItemOpenRecentClick(Sender: TObject);70 69 procedure TreeView1SelectionChanged(Sender: TObject); 71 70 private … … 95 94 begin 96 95 AutoOpen := True; 97 LastOpenedListOpen.LoadFromRegistry(RegContext(RootKey, RootPath + ' /OpenRecent'));98 LastOpenedListCompare.LoadFromRegistry(RegContext(RootKey, RootPath + ' /CompareRecent'));96 LastOpenedListOpen.LoadFromRegistry(RegContext(RootKey, RootPath + '\OpenRecent')); 97 LastOpenedListCompare.LoadFromRegistry(RegContext(RootKey, RootPath + '\CompareRecent')); 99 98 if AutoOpen and (LastOpenedListOpen.Items.Count > 0) then 100 99 OpenDir(LastOpenedListOpen.Items[0]) … … 112 111 LastOpenedListOpen.LoadToMenuItem(MenuItemOpenRecent, AOpenDirExecute); 113 112 LastOpenedListOpen.LoadToMenuItem(PopupMenuOpenRecent.Items, AOpenDirExecute); 114 end;115 116 procedure TFormMain.MenuItemOpenRecentClick(Sender: TObject);117 begin118 119 113 end; 120 114 … … 254 248 procedure TFormMain.FormClose(Sender: TObject; var CloseAction: TCloseAction); 255 249 begin 256 LastOpenedListOpen.SaveToRegistry(RegContext(RootKey, RootPath + ' /OpenRecent'));257 LastOpenedListCompare.SaveToRegistry(RegContext(RootKey, RootPath + ' /CompareRecent'));250 LastOpenedListOpen.SaveToRegistry(RegContext(RootKey, RootPath + '\OpenRecent')); 251 LastOpenedListCompare.SaveToRegistry(RegContext(RootKey, RootPath + '\CompareRecent')); 258 252 end; 259 253
Note:
See TracChangeset
for help on using the changeset viewer.