git-svn-id: trunk@9422 -
This commit is contained in:
mattias 2006-06-12 19:06:18 +00:00
parent 436dd7b560
commit 8bf46b037a
2 changed files with 8 additions and 13 deletions

View File

@ -46,11 +46,9 @@ type
procedure HelpButtonClick(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
end;
var
Form1: TForm1;
@ -65,16 +63,12 @@ begin
ShowHelpOrErrorForKeyword('','HTML/index.html'); // HTML is case sensitive
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
HtmlHelp2Viewer.RegisterHelpViewer; // This registers the help viewer
// using the iPro viewer
end;
initialization
{$I htmlhelp2unit1.lrs}

View File

@ -35,8 +35,9 @@ unit HtmlHelp2Viewer;
interface
uses
Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, ExtCtrls, LCLProc,
IpHtml, Buttons, helpintfs, lazhelpintf, ComCtrls, ipfilebroker, iputils;
Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, ExtCtrls,
LCLProc, IpHtml, Buttons, helpintfs, lazhelpintf, ComCtrls, ipfilebroker,
iputils;
type
@ -69,7 +70,10 @@ procedure RegisterHelpViewer;
implementation
type
THTMLHelpViewer = class(THelpViewer)
{ THTMLHelpViewer }
THTMLHelpViewer = class(THelpViewer)
private
public
constructor Create(TheOwner: TComponent); override;
@ -122,20 +126,17 @@ begin
IHP.GoBack;
end;
procedure THelpViewerForm.ForwardButtonClick(Sender: TObject);
begin
IHP.GoForward;
end;
procedure THelpViewerForm.IHPDocumentOpen(Sender: TObject);
begin
BackButton.Enabled := IHP.canGoBack;
ForwardButton.Enabled := IHP.canGoForward;
end;
procedure THelpViewerForm.showURL(URL : String);
begin
Show;