Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Probleme mit HelpContext (https://www.delphipraxis.net/76991-probleme-mit-helpcontext.html)

egal 13. Sep 2006 09:10


Probleme mit HelpContext
 
Gestern habe ich zufällig entdeckt, dass in meiner ziemlich komplexen Anwendung Aufruf von der Hilfe mit Helpcontext nicht mehr funktioniert, obwohl es früher alles einwandfrei geklappt hat.
Ich habe ein Testprogramm geschrieben, wo ich Hilfe aufrufe:
Delphi-Quellcode:
Application.HelpFile := ExtractFilePath(Application.ExeName) +'Helpfiles\Druck.hlp';
Application.HelpContext(HelpContext);
Und da läuft alles. In meiner Anwendung mache ich genauso, aber Application.HelpContext ruft keine Hilfe auf. Was mache ich falsch?

pmoegenb 13. Sep 2006 11:31

Re: Probleme mit HelpContext
 
Ich machs immer so, wenn die Pfadangabe erforderlich wird:

Delphi-Quellcode:
private
    { Private-Deklarationen }
    HelpPfad: string;

procedure TForm1.FormCreate(Sender: TObject);
var
   Laenge: Integer;
begin
     Laenge := Length(ExtractFilePath(Application.ExeName));
     HelpPfad := copy(ExtractFilePath(Application.ExeName), 1,Laenge-1);
end;

procedure TForm1.BitBtn2Click(Sender: TObject);
begin
     SetCurrentDir(HelpPfad);
     Application.HelpKeyword('Allgemeines');
end;


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:47 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz