[DUG] Delphi 2007 and Application.OnHelp
Robert martin
rob at chreos.co.nz
Thu Sep 17 10:43:51 NZST 2009
Hi
I am playing with the Appliction.onHelp event.
I have coded HelpContext values for all my forms and NO individual for
components. Everything is set to htContext. When I press F1 some times
I get the correct helpCOntext passed through other times I get a value I
haven't entered. This depends on the component I have focus on. Our
custom components are returning the Forms Help context (correct) but std
Delphi components seem to be returning their own 'internal' help context
(which I guess is used by the delphi help in the IDE).
I have the following code in the OnHelp event.
ShowMessage(IntToStr(Data) + ' ' + IntToStr(Command));
I haven't associated a help file at this point. This will be a web
based help system.
This seems to happen regardless of whether the app is run from the IDE.
Does anybody have any idea what I am doing wrong?
I read in some old web posts that delphi 6+ help is broken, another says
6,7,8. Can anybody confirm it is 'unbroken' in D2007?
Cheers
Rob
More information about the Delphi
mailing list