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

    r45 r58  
    44
    55uses
    6   Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, FrameBuffer,
    7   Channel, Device;
     6  Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, Menus,
     7  FrameBuffer, Device;
    88
    99type
     
    1313  TFormScreen = class(TFormDevice)
    1414    Image1: TImage;
     15    MainMenu1: TMainMenu;
     16    MenuItem1: TMenuItem;
     17    MenuItem10: TMenuItem;
     18    MenuItem11: TMenuItem;
     19    MenuItem12: TMenuItem;
     20    MenuItem2: TMenuItem;
     21    MenuItem3: TMenuItem;
     22    MenuItem4: TMenuItem;
     23    MenuItem5: TMenuItem;
     24    MenuItem6: TMenuItem;
     25    MenuItem7: TMenuItem;
     26    MenuItem8: TMenuItem;
     27    MenuItem9: TMenuItem;
     28    MenuItemViewConsole: TMenuItem;
     29    MenuItemViewStorage: TMenuItem;
     30    Separator1: TMenuItem;
     31    Separator2: TMenuItem;
    1532    TimerDraw: TTimer;
     33    procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
    1634    procedure FormShow(Sender: TObject);
    1735    procedure TimerDrawTimer(Sender: TObject);
     
    2745
    2846{$R *.lfm}
     47
     48uses
     49  Core;
    2950
    3051{ TFormScreen }
     
    5576end;
    5677
     78procedure TFormScreen.FormClose(Sender: TObject; var CloseAction: TCloseAction);
     79begin
     80  if Core.Core.MainForm = Self then Application.Terminate;
     81end;
     82
    5783procedure TFormScreen.ScreenChange(Sender: TObject);
    5884begin
Note: See TracChangeset for help on using the changeset viewer.