Line | |
---|
1 | unit TurboPowerForm;
|
---|
2 |
|
---|
3 | interface
|
---|
4 |
|
---|
5 | uses
|
---|
6 | Classes, SysUtils, FileUtil, IpHtml, Ipfilebroker, LResources, Forms,
|
---|
7 | Controls, Graphics, Dialogs, ComCtrls, StdCtrls, ActnList;
|
---|
8 |
|
---|
9 | type
|
---|
10 |
|
---|
11 | { TFormWebBrowser }
|
---|
12 |
|
---|
13 | TFormWebBrowser = class(TForm)
|
---|
14 | AReloadPage: TAction;
|
---|
15 | AShowSource: TAction;
|
---|
16 | ActionList1: TActionList;
|
---|
17 | EditAddress: TEdit;
|
---|
18 | IpFileDataProvider1: TIpFileDataProvider;
|
---|
19 | IpHtmlPanel1: TIpHtmlPanel;
|
---|
20 | StatusBar1: TStatusBar;
|
---|
21 | ToolBar1: TToolBar;
|
---|
22 | ToolButton1: TToolButton;
|
---|
23 | ToolButton2: TToolButton;
|
---|
24 | procedure AShowSourceExecute(Sender: TObject);
|
---|
25 | procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
|
---|
26 | public
|
---|
27 | HtmlSource: string;
|
---|
28 | end;
|
---|
29 |
|
---|
30 | var
|
---|
31 | FormWebBrowser: TFormWebBrowser;
|
---|
32 |
|
---|
33 |
|
---|
34 | implementation
|
---|
35 |
|
---|
36 | {$R *.lfm}
|
---|
37 |
|
---|
38 | { TFormWebBrowser }
|
---|
39 |
|
---|
40 | procedure TFormWebBrowser.FormClose(Sender: TObject; var CloseAction: TCloseAction);
|
---|
41 | begin
|
---|
42 | Application.Terminate;
|
---|
43 | end;
|
---|
44 |
|
---|
45 | procedure TFormWebBrowser.AShowSourceExecute(Sender: TObject);
|
---|
46 | begin
|
---|
47 | ShowMessage(HtmlSource);
|
---|
48 | end;
|
---|
49 |
|
---|
50 | end.
|
---|
51 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.