Changeset 317 for trunk/Forms/FormKeyShortcuts.pas
- Timestamp:
- Jun 21, 2024, 12:44:53 PM (5 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormKeyShortcuts.pas
r316 r317 1 unit UFormKeyShortcuts;1 unit FormKeyShortcuts; 2 2 3 3 interface … … 5 5 uses 6 6 Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs, 7 ComCtrls, ActnList, LCLProc, Menus ;7 ComCtrls, ActnList, LCLProc, Menus, FormEx; 8 8 9 9 type … … 11 11 { TFormKeyShortcuts } 12 12 13 TFormKeyShortcuts = class(TForm )13 TFormKeyShortcuts = class(TFormEx) 14 14 ListView1: TListView; 15 15 MenuItem1: TMenuItem; 16 16 PopupMenu1: TPopupMenu; 17 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);18 procedure FormCreate(Sender: TObject);19 17 procedure FormShow(Sender: TObject); 20 18 procedure MenuItem1Click(Sender: TObject); … … 23 21 end; 24 22 25 var26 FormKeyShortcuts: TFormKeyShortcuts;27 28 23 29 24 implementation 30 25 31 26 uses 32 UFormMain, UCore;27 FormMain, Core; 33 28 34 29 resourcestring … … 40 35 procedure TFormKeyShortcuts.FormShow(Sender: TObject); 41 36 begin 42 Core.PersistentForm.Load(Self);43 Core.ThemeManager1.UseTheme(Self);44 37 try 45 38 ListView1.BeginUpdate; 46 39 ListView1.Clear; 47 LoadFromComponent(Core );48 LoadFromComponent( FormMain);40 LoadFromComponent(Core.Core); 41 LoadFromComponent(Core.Core.FormMain); 49 42 finally 50 43 ListView1.EndUpdate; … … 56 49 if Assigned(ListView1.Selected) then 57 50 TAction(ListView1.Selected.Data).Execute; 58 end;59 60 procedure TFormKeyShortcuts.FormClose(Sender: TObject;61 var CloseAction: TCloseAction);62 begin63 Core.PersistentForm.Save(Self);64 end;65 66 procedure TFormKeyShortcuts.FormCreate(Sender: TObject);67 begin68 Core.CoolTranslator1.TranslateComponentRecursive(Self);69 51 end; 70 52 … … 99 81 100 82 initialization 101 {$I UFormKeyShortcuts.lrs}83 {$I FormKeyShortcuts.lrs} 102 84 103 85 end.
Note:
See TracChangeset
for help on using the changeset viewer.