Changeset 154 for trunk/Forms/FormMain.pas
- Timestamp:
- Aug 14, 2024, 10:51:18 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormMain.pas
r153 r154 7 7 Graphics, Dialogs, Menus, ActnList, ComCtrls, ExtCtrls, Target, Registry, 8 8 LazFileUtils, FormOptions, FormMessages, FormTargets, FormCompileMultiple, 9 FormOutput, FormMemory, FormSourceCode, FormTargetCode, FormLog, FormEx; 9 FormOutput, FormMemory, FormSourceCode, FormTargetCode, FormLog, FormEx, 10 FormKeyShortcuts; 10 11 11 12 type … … 14 15 15 16 TFormMain = class(TFormEx) 17 AKeyShortcuts: TAction; 16 18 AFullScreen: TAction; 17 19 AProgramCompileMultiple: TAction; … … 62 64 MenuItem27: TMenuItem; 63 65 MenuItem28: TMenuItem; 66 MenuItem29: TMenuItem; 64 67 MenuItem30: TMenuItem; 65 68 MenuItem31: TMenuItem; … … 122 125 procedure AFullScreenExecute(Sender: TObject); 123 126 procedure AHelpExecute(Sender: TObject); 127 procedure AKeyShortcutsExecute(Sender: TObject); 124 128 procedure AOptionsExecute(Sender: TObject); 125 129 procedure AProgramCompileExecute(Sender: TObject); … … 159 163 FormSourceCode: TFormSourceCode; 160 164 FormTargetCode: TFormTargetCode; 165 FormKeyShortcuts: TFormKeyShortcuts; 161 166 procedure AProjectOpenRecentExecute(Sender: TObject); 162 167 procedure MenuItemTargetClick(Sender: TObject); … … 406 411 FreeAndNil(FormOutput); 407 412 FreeAndNil(FormTargetCode); 413 if Assigned(FormKeyShortcuts) then FreeAndNil(FormKeyShortcuts); 408 414 end; 409 415 … … 497 503 begin 498 504 FormHelp := TFormHelp.Create(nil); 499 FormHelp.ShowModal; 500 FormHelp.Free; 505 try 506 FormHelp.ShowModal; 507 finally 508 FormHelp.Free; 509 end; 510 end; 511 512 procedure TFormMain.AKeyShortcutsExecute(Sender: TObject); 513 begin 514 if not Assigned(FormKeyShortcuts) then FormKeyShortcuts := TFormKeyShortcuts.Create(nil); 515 FormKeyShortcuts.SourceComponents.Clear; 516 FormKeyShortcuts.SourceComponents.Add(Self); 517 FormKeyShortcuts.Show; 501 518 end; 502 519
Note:
See TracChangeset
for help on using the changeset viewer.