unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, HTMLHelpViewer, HelpFile, pngimage, ExtCtrls;
type
TForm1 =
class(TForm)
Label1: TLabel;
Inhaltsverzeichnis: TButton;
Stichwoerter: TButton;
Thema_suchen: TButton;
Button4: TButton;
Button5: TButton;
Button6: TButton;
Button7: TButton;
Label2: TLabel;
Label3: TLabel;
Image1: TImage;
procedure FormCreate(Sender: TObject);
procedure InhaltsverzeichnisClick(Sender: TObject);
procedure StichwoerterClick(Sender: TObject);
procedure Thema_suchenClick(Sender: TObject);
procedure Button4Click(Sender: TObject);
procedure Button5Click(Sender: TObject);
procedure Button6Click(Sender: TObject);
procedure buSetWinPosClick(Sender:TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
Application.HelpFile := ExtractFilePath(Application.ExeName) +
'
HelpFile\HelpFile.chm';
Label1.Caption:= Application.HelpFile;
end;
procedure TForm1.InhaltsverzeichnisClick(Sender: TObject);
begin
HtmlHelp(0, Application.HelpFile, HH_DISPLAY_TOC, 0);
end;
procedure TForm1.StichwoerterClick(Sender: TObject);
begin
HtmlHelp(0, Application.HelpFile, HH_DISPLAY_INDEX, DWORD(PWideChar('
Test')));
end;
procedure TForm1.Thema_suchenClick(Sender: TObject);
var
Query: THH_Fts_QueryW;
begin
with Query do
begin
cbStruct:= SizeOf(THH_Fts_QueryW);
fUniCodeStrings:= True;
pszSearchQuery:= '
';
iProximity:= 0;
fStemmedSearch:= True;
fTitleOnly:= False;
fExecute:= True;
pszWindow:=
nil;
end;
HtmlHelp(0, Application.HelpFile, HH_DISPLAY_SEARCH, DWORD(@
Query));
end;
procedure TForm1.Button4Click(Sender: TObject);
begin
Application.HelpContext(IDH_TOPIC30);
end;
procedure TForm1.Button5Click(Sender: TObject);
begin
Application.HelpContext(IDH_TOPIC40);
end;
procedure TForm1.Button6Click(Sender: TObject);
begin
Application.HelpKeyword('
Test');
end;
end.