Help with Help

If you have a programming question, please feel free to post it here. Non-programming questions will be moved to Miscellaneous or deleted.

Help with Help

by geowink » 11/08/09 19:25

--------------------------------------------------------------------------------

I'm just getting into Delphi 2009 from D6. I have help in my apps but that doesn't work. My current code is

TVar := True;
HH := Exe_Dir(TVar) + '\VBSHelp\VBSHelp.hlp';
Application.HelpFile := HH;
Application.HelpCommand(HELP_FINDER, 0);

This doesn't work in 2009. I have looked for what needs to be done but can't find anything. I need your "help", no pun intended. Thanks.

George
geowink
Active Member
Active Member
 
Posts: 22
Joined: 29/11/05 03:59
Location: La Grange, Illinois

Re: Help with Help

by geowink » 16/08/09 19:32

No one has a Help file in your D2009 app? If you do, how do you display it?

George
George
geowink
Active Member
Active Member
 
Posts: 22
Joined: 29/11/05 03:59
Location: La Grange, Illinois

Re: Help with Help

by Kambiz » 16/08/09 20:34

Personally I've never included a context sensitive help in my apps.
Kambiz

Donate a cup of food for free: Click to Give @ The Hunger Site

Kambiz
Administrator
Administrator
 
Posts: 1840
Joined: 07/03/03 19:10
Location: Tehran, Iran

Re: Help with Help

by geowink » 19/08/09 02:19

I got an answer from the Embarbadero Forum. If you add WinHelpViewer to the Uses clause it will work, i.e., you can display an hlp Help file. Something to maybr remember 8-)

George
George
geowink
Active Member
Active Member
 
Posts: 22
Joined: 29/11/05 03:59
Location: La Grange, Illinois

Re: Help with Help

by geowink » 19/08/09 02:43

I have also been told that Microsoft, in their infinite wisdom, removed WinHelp support in Vista and probably in Windows 7. I still aim at XP but I guess I will have to change my approach. It was suggested I look at HelpScribble.

George
George
geowink
Active Member
Active Member
 
Posts: 22
Joined: 29/11/05 03:59
Location: La Grange, Illinois

Re: Help with Help

by Kambiz » 19/08/09 07:48

Yeah, in Vista you have to download and install WinHelp to be able to open the help files.
Kambiz

Donate a cup of food for free: Click to Give @ The Hunger Site

Kambiz
Administrator
Administrator
 
Posts: 1840
Joined: 07/03/03 19:10
Location: Tehran, Iran

Re: Help with Help

by mathgod » 19/08/09 20:00

I use Shalom Help Maker for hlp files. It is free.
http://www.danish-shareware.dk/soft/shelpm/index.html
mathgod
Active Member
Active Member
 
Posts: 17
Joined: 15/12/07 16:36
Location: Middle of New Mexico, USA

Re: Help with Help

by geowink » 20/08/09 01:48

I also use Shalom but I have talked with them and they are not going to make .chm files sooooo I may have to get the .hlp file and convert it since Vista and Windows 7 are problems. I still don't know how to display a .chm file in D2009. Any suggestions?

George
George
geowink
Active Member
Active Member
 
Posts: 22
Joined: 29/11/05 03:59
Location: La Grange, Illinois

Re: Help with Help

by mathgod » 20/08/09 06:35

I never attempted to make a chm file context sensitive for an application. I may do this for my next Delphi project. Here is a page that explains how to use a chm file for context sensitive help. http://www.roboauthor.com/online_docume ... 00000a.htm Another option is to launch the chm file from an event such as a button-click.
mathgod
Active Member
Active Member
 
Posts: 17
Joined: 15/12/07 16:36
Location: Middle of New Mexico, USA

Re: Help with Help

by stimpakr » 20/08/09 10:14

Hi geo

For context help I suggest using a side or bottom panel containing a rich text control (memo) with maybe a nice pale yellow color and read-only.
Then you simply load up some rich text from a subfolder of your app. Much better than wasting time making help files.

However, a chm download can be useful for a potential client who may like to assess your software before downloading/installing.

cheers :)
stim
stimpakr
Member
Member
 
Posts: 3
Joined: 20/08/09 10:03

Re: Help with Help

by geowink » 20/08/09 17:04

I decided to try ShellExecute and that worked. I put a Menu item Help which did the following...

ShellExecute(Handle, 'open', PChar(DD), nil, nil, SW_SHOWNORMAL);

where DD is the string c:\YourApp\TheHelpFile.chm

You need ShellAPI in the Uses clause.

George
George
geowink
Active Member
Active Member
 
Posts: 22
Joined: 29/11/05 03:59
Location: La Grange, Illinois


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 0 guests