Changeset 58 for branches/ByteArray/Forms/FormSourceEditor.pas
- Timestamp:
- Nov 23, 2023, 11:18:42 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ByteArray/Forms/FormSourceEditor.pas
r56 r58 39 39 MenuItem16: TMenuItem; 40 40 MenuItem17: TMenuItem; 41 MenuItem18: TMenuItem; 42 MenuItem19: TMenuItem; 41 43 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; 42 56 MenuItem3: TMenuItem; 43 57 MenuItem4: TMenuItem; … … 53 67 procedure ACloseExecute(Sender: TObject); 54 68 procedure ACompileExecute(Sender: TObject); 55 procedure AExitExecute(Sender: TObject);56 69 procedure ANewExecute(Sender: TObject); 57 70 procedure AOpenExecute(Sender: TObject); … … 60 73 procedure ASaveExecute(Sender: TObject); 61 74 procedure AStopExecute(Sender: TObject); 75 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 62 76 procedure FormCreate(Sender: TObject); 63 77 procedure FormDestroy(Sender: TObject); … … 77 91 implementation 78 92 93 {$R *.lfm} 94 79 95 uses 80 Common; 81 82 {$R *.lfm} 96 Common, Core; 83 97 84 98 { TFormSourceEditor } … … 91 105 FormAssembler := TFormAssembler.Create(nil); 92 106 FormMessages.OnSelect := FormAssembler.Select; 93 end;94 95 procedure TFormSourceEditor.AExitExecute(Sender: TObject);96 begin97 Close;98 107 end; 99 108 … … 165 174 end; 166 175 176 procedure TFormSourceEditor.FormClose(Sender: TObject; 177 var CloseAction: TCloseAction); 178 begin 179 if Core.Core.MainForm = Self then Application.Terminate; 180 end; 181 167 182 procedure TFormSourceEditor.FormDestroy(Sender: TObject); 168 183 begin
Note:
See TracChangeset
for help on using the changeset viewer.