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/FormSourceEditor.pas

    r56 r58  
    3939    MenuItem16: TMenuItem;
    4040    MenuItem17: TMenuItem;
     41    MenuItem18: TMenuItem;
     42    MenuItem19: TMenuItem;
    4143    MenuItem2: TMenuItem;
     44    MenuItem20: TMenuItem;
     45    MenuItem21: TMenuItem;
     46    MenuItem22: TMenuItem;
     47    MenuItem23: TMenuItem;
     48    MenuItem24: TMenuItem;
     49    MenuItem25: TMenuItem;
     50    MenuItem26: TMenuItem;
     51    MenuItem27: TMenuItem;
     52    MenuItem28: TMenuItem;
     53    MenuItem29: TMenuItem;
     54    Separator3: TMenuItem;
     55    Separator2: TMenuItem;
    4256    MenuItem3: TMenuItem;
    4357    MenuItem4: TMenuItem;
     
    5367    procedure ACloseExecute(Sender: TObject);
    5468    procedure ACompileExecute(Sender: TObject);
    55     procedure AExitExecute(Sender: TObject);
    5669    procedure ANewExecute(Sender: TObject);
    5770    procedure AOpenExecute(Sender: TObject);
     
    6073    procedure ASaveExecute(Sender: TObject);
    6174    procedure AStopExecute(Sender: TObject);
     75    procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
    6276    procedure FormCreate(Sender: TObject);
    6377    procedure FormDestroy(Sender: TObject);
     
    7791implementation
    7892
     93{$R *.lfm}
     94
    7995uses
    80   Common;
    81 
    82 {$R *.lfm}
     96  Common, Core;
    8397
    8498{ TFormSourceEditor }
     
    91105  FormAssembler := TFormAssembler.Create(nil);
    92106  FormMessages.OnSelect := FormAssembler.Select;
    93 end;
    94 
    95 procedure TFormSourceEditor.AExitExecute(Sender: TObject);
    96 begin
    97   Close;
    98107end;
    99108
     
    165174end;
    166175
     176procedure TFormSourceEditor.FormClose(Sender: TObject;
     177  var CloseAction: TCloseAction);
     178begin
     179  if Core.Core.MainForm = Self then Application.Terminate;
     180end;
     181
    167182procedure TFormSourceEditor.FormDestroy(Sender: TObject);
    168183begin
Note: See TracChangeset for help on using the changeset viewer.