1 | unit FormMain;
|
---|
2 |
|
---|
3 | interface
|
---|
4 |
|
---|
5 | uses
|
---|
6 | Classes, SysUtils, Forms, Controls, Graphics, Dialogs, Menus, ExtCtrls, FormEx;
|
---|
7 |
|
---|
8 | type
|
---|
9 |
|
---|
10 | { TFormMain }
|
---|
11 |
|
---|
12 | TFormMain = class(TFormEx)
|
---|
13 | MainMenu1: TMainMenu;
|
---|
14 | MenuItem1: TMenuItem;
|
---|
15 | MenuItem10: TMenuItem;
|
---|
16 | MenuItem11: TMenuItem;
|
---|
17 | MenuItem12: TMenuItem;
|
---|
18 | MenuItem13: TMenuItem;
|
---|
19 | MenuItem14: TMenuItem;
|
---|
20 | MenuItem15: TMenuItem;
|
---|
21 | MenuItem2: TMenuItem;
|
---|
22 | MenuItem3: TMenuItem;
|
---|
23 | MenuItem4: TMenuItem;
|
---|
24 | MenuItem5: TMenuItem;
|
---|
25 | MenuItem6: TMenuItem;
|
---|
26 | MenuItem7: TMenuItem;
|
---|
27 | MenuItem8: TMenuItem;
|
---|
28 | MenuItem9: TMenuItem;
|
---|
29 | PanelLeft: TPanel;
|
---|
30 | PanelRight: TPanel;
|
---|
31 | PanelCenter: TPanel;
|
---|
32 | Splitter1: TSplitter;
|
---|
33 | Splitter2: TSplitter;
|
---|
34 | procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
|
---|
35 | procedure FormCreate(Sender: TObject);
|
---|
36 | procedure FormDestroy(Sender: TObject);
|
---|
37 | procedure FormShow(Sender: TObject);
|
---|
38 | public
|
---|
39 | procedure DockForm(Form: TForm; DockSite: TWinControl);
|
---|
40 | procedure DockInit;
|
---|
41 | end;
|
---|
42 |
|
---|
43 | var
|
---|
44 | FormMain: TFormMain;
|
---|
45 |
|
---|
46 |
|
---|
47 | implementation
|
---|
48 |
|
---|
49 | {$R *.lfm}
|
---|
50 |
|
---|
51 | uses
|
---|
52 | Core;
|
---|
53 |
|
---|
54 | { TFormMain }
|
---|
55 |
|
---|
56 | procedure TFormMain.DockForm(Form: TForm; DockSite: TWinControl);
|
---|
57 | begin
|
---|
58 | Form.ManualDock(DockSite, nil, alClient);
|
---|
59 | Form.Align := alClient;
|
---|
60 | Form.Show;
|
---|
61 | end;
|
---|
62 |
|
---|
63 | procedure TFormMain.DockInit;
|
---|
64 | begin
|
---|
65 | Core.Core.AViewCpu.Execute;
|
---|
66 | Core.Core.AViewScreen.Execute;
|
---|
67 | Core.Core.AViewDissssembler.Execute;
|
---|
68 | DockForm(Core.Core.FormScreen, PanelCenter);
|
---|
69 | DockForm(Core.Core.FormCpu, PanelRight);
|
---|
70 | DockForm(Core.Core.FormDisassembler, PanelLeft);
|
---|
71 | end;
|
---|
72 |
|
---|
73 | procedure TFormMain.FormCreate(Sender: TObject);
|
---|
74 | begin
|
---|
75 | end;
|
---|
76 |
|
---|
77 | procedure TFormMain.FormClose(Sender: TObject; var CloseAction: TCloseAction);
|
---|
78 | begin
|
---|
79 | Application.Terminate;
|
---|
80 | end;
|
---|
81 |
|
---|
82 | procedure TFormMain.FormDestroy(Sender: TObject);
|
---|
83 | begin
|
---|
84 | end;
|
---|
85 |
|
---|
86 | procedure TFormMain.FormShow(Sender: TObject);
|
---|
87 | begin
|
---|
88 | DockInit;
|
---|
89 | end;
|
---|
90 |
|
---|
91 | end.
|
---|
92 |
|
---|