Changeset 153 for trunk/Forms/FormMain.pas
- Timestamp:
- Aug 14, 2024, 1:05:13 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormMain.pas
r152 r153 14 14 15 15 TFormMain = class(TFormEx) 16 AFullScreen: TAction; 16 17 AProgramCompileMultiple: TAction; 17 18 AViewLog: TAction; … … 55 56 MenuItem21: TMenuItem; 56 57 MenuItem22: TMenuItem; 58 MenuItem23: TMenuItem; 57 59 MenuItem24: TMenuItem; 58 60 MenuItem25: TMenuItem; 61 MenuItem26: TMenuItem; 59 62 MenuItem27: TMenuItem; 60 63 MenuItem28: TMenuItem; … … 117 120 procedure ABreakpointToggleExecute(Sender: TObject); 118 121 procedure AExitExecute(Sender: TObject); 122 procedure AFullScreenExecute(Sender: TObject); 123 procedure AHelpExecute(Sender: TObject); 119 124 procedure AOptionsExecute(Sender: TObject); 120 125 procedure AProgramCompileExecute(Sender: TObject); … … 138 143 procedure AViewInterpreterExecute(Sender: TObject); 139 144 procedure AViewLogExecute(Sender: TObject); 145 procedure FormActivate(Sender: TObject); 140 146 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 141 147 procedure FormCloseQuery(Sender: TObject; var CanClose: boolean); … … 176 182 177 183 uses 178 Core, TargetInterpreter, BFTarget, Common, FormAbout ;184 Core, TargetInterpreter, BFTarget, Common, FormAbout, FormHelp; 179 185 180 186 resourcestring … … 342 348 AShowSourcePosition.Enabled := CurrentTarget.Compiled; 343 349 AShowTargetPosition.Enabled := CurrentTarget.Compiled; 350 AFullScreen.Checked := FullScreen; 344 351 end; 345 352 UpdateStatusBar; … … 453 460 end; 454 461 462 procedure TFormMain.FormActivate(Sender: TObject); 463 begin 464 AFullScreen.Checked := FullScreen; 465 end; 466 455 467 procedure TFormMain.FormClose(Sender: TObject; var CloseAction: TCloseAction); 456 468 begin … … 469 481 begin 470 482 Close; 483 end; 484 485 procedure TFormMain.AFullScreenExecute(Sender: TObject); 486 begin 487 FullScreen := not FullScreen; 488 AFullScreen.Checked := FullScreen; 489 TFormEx.PersistentForm.Save(Self); 490 TFormEx.PersistentForm.SetFullScreen(FullScreen); 491 UpdateInterface; 492 end; 493 494 procedure TFormMain.AHelpExecute(Sender: TObject); 495 var 496 FormHelp: TFormHelp; 497 begin 498 FormHelp := TFormHelp.Create(nil); 499 FormHelp.ShowModal; 500 FormHelp.Free; 471 501 end; 472 502
Note:
See TracChangeset
for help on using the changeset viewer.