source: trunk/Packages/CoolWeb/WebServer/TurboPowerForm.pas

Last change on this file was 151, checked in by chronos, 9 months ago
File size: 1015 bytes
Line 
1unit TurboPowerForm;
2
3interface
4
5uses
6 Classes, SysUtils, FileUtil, IpHtml, Ipfilebroker, LResources, Forms,
7 Controls, Graphics, Dialogs, ComCtrls, StdCtrls, ActnList;
8
9type
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
30var
31 FormWebBrowser: TFormWebBrowser;
32
33
34implementation
35
36{$R *.lfm}
37
38{ TFormWebBrowser }
39
40procedure TFormWebBrowser.FormClose(Sender: TObject; var CloseAction: TCloseAction);
41begin
42 Application.Terminate;
43end;
44
45procedure TFormWebBrowser.AShowSourceExecute(Sender: TObject);
46begin
47 ShowMessage(HtmlSource);
48end;
49
50end.
51
Note: See TracBrowser for help on using the repository browser.