Ignore:
Timestamp:
Nov 23, 2023, 11:18:42 PM (13 months ago)
Author:
chronos
Message:
  • Modified: Source editor with main menu can't be docked into another form with main menu. Source enditor and Screen have own main menu.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ByteArray/Forms/FormDisassembler.pas

    r50 r58  
    1212  TFormDisassembler = class(TForm)
    1313    MemoCode: TMemo;
     14    procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
    1415    procedure FormCreate(Sender: TObject);
    1516    procedure FormDestroy(Sender: TObject);
     
    2930{$R *.lfm}
    3031
     32uses
     33  Core;
     34
    3135{ TFormDisassembler }
    3236
     
    3438begin
    3539  Disassembler := TDisassembler.Create;
     40end;
     41
     42procedure TFormDisassembler.FormClose(Sender: TObject;
     43  var CloseAction: TCloseAction);
     44begin
     45  if Core.Core.MainForm = Self then Application.Terminate;
    3646end;
    3747
Note: See TracChangeset for help on using the changeset viewer.