home *** CD-ROM | disk | FTP | other *** search
- unit Htmlabt;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, Dialogs, StdCtrls, Buttons, Htmlview, ExtCtrls;
-
- type
- TAboutBox = class(TForm)
- BitBtn1: TBitBtn;
- Panel1: TPanel;
- Viewer: THTMLViewer;
- procedure FormCreate(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- AboutBox: TAboutBox;
-
- implementation
-
- {$R *.DFM}
- const
- S: string =
- '<body bgcolor="ffffc0" text="000080">'+
- '<center>'+
- '<h1>HTMLDemo</h1>'+
- 'A demo program for the ThtmlViewer component'+
-
- '<h3>Version 3.0</h3>'+
- '</center>'+
- '</body>';
-
- procedure TAboutBox.FormCreate(Sender: TObject);
- begin
- Viewer.LoadFromBuffer(@S[1], Length(S));
- Viewer.DefFontName := 'MS Sans Serif';
- Viewer.DefFontSize := 9;
- Viewer.DefFontColor := clNavy;
- end;
-
- end.
-