Paradox Community

Items in pnews.paradox-programming

Subject:Re: Help System
Date:Sat, 14 Dec 2019 22:09:42 +0100
From:Caselli Luigi <luigicasellianyspamrefused@iol.it>
Newsgroups:pnews.paradox-programming
Il 10/12/2019 23:25, Peter ha scritto:
> Hello all,
> I built my first Help system. Yeesh, almost as long to make as the darn 
> program itself.
> 
> I had to place the chm file in a local directory as it seems MS doesn't 
> want to open it on a network drive. (Win XP Pro)
> 
> I can control opening the Help file with focus on whichever topic ID is 
> nrequested, so far so good.
> 
> Is there a way to send a keyword so the Help opens at a specific anchor 
> in the Help file?
> 
> Thanks for any tips.
> 
> Peter

In the keyPhysical method of the form you should write this code:

method keyPhysical(var eventInfo KeyEvent)

	if eventInfo.isPreFilter() then
		;// This code executes for each object on the form:
		if eventinfo.vChar()="VK_F1" then
			DisableDefault
			helpShowTopic(YourHelpFile,ThisFormTopic)
		endIf
	else
		;// This code executes only for the form:
		
	endif

endmethod

Hope this helps...

Luigi Caselli


Copyright © 2004 thedbcommunity.com