Einzelnen Beitrag anzeigen

Benutzerbild von Flocke
Flocke

Registriert seit: 9. Jun 2005
Ort: Unna
1.172 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#3

Re: HLP -Dateien in Delphi 2005

  Alt 9. Mär 2006, 06:41
Eine Unit Winhelp kennt mein Delphi nicht...

Schreib' einfach einen Handler für Application.OnHelp in deiner Hauptformularklasse:
Delphi-Quellcode:
type
  TForm1 = class(TForm)
  //...
  private
    function ApplicationHelp(Command: Word; Data: Integer; var CallHelp: Boolean): Boolean;
  //...
  end;

//...

function TForm1.ApplicationHelp(Command: Word; Data: Integer; var CallHelp: Boolean): Boolean;
begin
  CallHelp := false;
  Result := not WinHelp(Handle, PChar(Application.HelpFile), Command, Data);
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  //...
  Application.OnHelp := ApplicationHelp;
  //...
end;
Volker
Besucht meine Garage
Aktuell: RtfLabel 1.3d, PrintToFile 1.4
  Mit Zitat antworten Zitat