Subject Re: Help File
From Lee Grant <camilee@nospam.comcast.net>
Date Mon, 29 Jul 2024 01:20:51 -0400
Newsgroups dbase.getting-started

Mervyn,

Just a note, that doesn't work on my system as the folder name is BDE25,
and the file you have selected in the sample app is the .hlp file, which
doesn't work on Win10 systems, since the .hlp files have been superceded
by .chm files. :)

Lee


On 7/28/2024 5:47 AM, Mervyn Bick wrote:
> On 2024/07/27 15:32, Charlie wrote:
>> Is there a way of eliminating the cmd screen when running?  I have used:
>>
>> cmd help.chm
>> cmd(false,"help.chm")
>> Function doesn't work when true?
>>
>> Function key F1 works without the cmd screen.
>>
>> Is there an ascii number you can use for the F1 key?  I have tried
>> several like this..
>>
>> keyboard chr(xxx)   but none worked.
>>
>> Thanks for any help.
>
> I assume that you have created help.chm for your program and it's this
> file you want to display.
>
> One way to display a .chm file is to use ShellExecuteA() from
> Shell32.dll in the Win32 API.  As this is the function behind openURL()
> in miscapi.prg in the duFLP, all the heavy lifting has already been
> done.  :-)
>
> A little example form is attached.  I've used the BDE API help file as
> it happen to be available.  Replace this with your own .chm file.
>
> The menu is "quick and dirty" as I've left the default values (which are
> completely meaningless) for the various objects.  The shortcut for the
> help file has been set to F1.
>
> Mervyn.
>
>
>
>