source: trunk/Forms/FormMain.pas

Last change on this file was 2, checked in by chronos, 16 months ago
  • Added: Initial development version.
File size: 1.8 KB
Line 
1unit FormMain;
2
3interface
4
5uses
6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, Menus, ExtCtrls, FormEx;
7
8type
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
43var
44 FormMain: TFormMain;
45
46
47implementation
48
49{$R *.lfm}
50
51uses
52 Core;
53
54{ TFormMain }
55
56procedure TFormMain.DockForm(Form: TForm; DockSite: TWinControl);
57begin
58 Form.ManualDock(DockSite, nil, alClient);
59 Form.Align := alClient;
60 Form.Show;
61end;
62
63procedure TFormMain.DockInit;
64begin
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);
71end;
72
73procedure TFormMain.FormCreate(Sender: TObject);
74begin
75end;
76
77procedure TFormMain.FormClose(Sender: TObject; var CloseAction: TCloseAction);
78begin
79 Application.Terminate;
80end;
81
82procedure TFormMain.FormDestroy(Sender: TObject);
83begin
84end;
85
86procedure TFormMain.FormShow(Sender: TObject);
87begin
88 DockInit;
89end;
90
91end.
92
Note: See TracBrowser for help on using the repository browser.