Hi all this is driving me nuts:
If the application knows what the helpfile is the API call which is automatic
when F1 is pressed cant find: 'The topic does not exist...........
OK, so I dont tell it what the helpfile is and get the F1 key in formkey down:
procedure TMainform.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  case key of
    VK_F1: Begin key:=0; Help2click(self); end;
    VK_ESCAPE:


procedure TMainform.Help2Click(Sender: TObject);
begin
  application.HelpFile := 'back4winxp.hlp';
  application.HelpContext($1);
end;

Which brings the help up OK, then the API gets the call and same error message
closes the correct help window down! It only seems to happen in XP.

I tried eating the F1 key in formkeydown by key:=0 but that still does not stop
the API from doing its thing.

It is really weird - I can name another helpfile to the app and it doesnt work
either. But my freeware program with similar helpfile works ok. All the
help parameters between both program seem to match.
Any thoughts??
Thanks,
Alistair:

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to