keithcsl
asked on
WinHelp question
I need to know how to bring up the help dialog (using Application.HelpCommand) that shows the Contents tab.
I know how to display the Index tab but not the Contents tab. Also, I read the Winhelp.hlp file and it was mentioning something about the HELP_FINDER command, but it is not described more in detail. Does anyone know how to use this command?
Keith
I know how to display the Index tab but not the Contents tab. Also, I read the Winhelp.hlp file and it was mentioning something about the HELP_FINDER command, but it is not described more in detail. Does anyone know how to use this command?
Keith
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
WinHelp(Handle, 'C:\Program Files\Borland\Delphi 3\Help\Delphi3.hlp', HELP_FINDER,HELP_CONTENTS) ;
ASKER
ronit,
I had the same problem. The help dialog remembers that it was last using the index so it brings it up again. Am I doing something wrong?
PS: wouldn't the code above be the same as:
Application.HelpCommand(HE LP_FINDER, HELP_CONTENTS);
cecause the arguments r the same.
Keith
I had the same problem. The help dialog remembers that it was last using the index so it brings it up again. Am I doing something wrong?
PS: wouldn't the code above be the same as:
Application.HelpCommand(HE
cecause the arguments r the same.
Keith
ASKER
I am using HELP_PARTIALKEY to show the Index tab and it works all the time. Do you know how to use the HELP_SETCONTENTS command??
Keith
Keith
Application.HelpCommand(HE LP_SETCONT ENTS, id_of_content_page);
Is your help file syntax correct?
Is your help file syntax correct?
ASKER
HELP_SETCONTENTS is not the function i am looking for. I just want to display the Contents tab, not the help topic.
Hmmm, I tried Delphi's help menu and it hasa the same problem. Try clicking on the Contents command on the Help menu. Then click on the Index tab. Now close the help dialog and go to the Contents menu again. It will desplay the Index tab.
Keith
Hmmm, I tried Delphi's help menu and it hasa the same problem. Try clicking on the Contents command on the Help menu. Then click on the Index tab. Now close the help dialog and go to the Contents menu again. It will desplay the Index tab.
Keith
? You asked how to use HELP_SETCONTENTS, so I gave it to you.
ASKER
Zifnab
Please don't get offended by my comments. If you read my original question, you have not answered it at all. My comments are just constructive suggestions so that I can work with experts to solve my problem.
Well, I guess I'll just have to accept your answer and post the original question again....
Keith
Please don't get offended by my comments. If you read my original question, you have not answered it at all. My comments are just constructive suggestions so that I can work with experts to solve my problem.
Well, I guess I'll just have to accept your answer and post the original question again....
Keith
keithcsl, why didn't you just rejected my answer?
ASKER
Zifnab
well, based on the history of this question, i can see that I have asked another question in my comments and u have answered it correctly. i accecpted ur answer (the one in the comment) because i can't say that it was worng...
besides, i have also learnt something new from u, ie the HELP_SETCONTENTS command. thanx for that. i hope we can continue to exchange thoughts in future...
Keith
well, based on the history of this question, i can see that I have asked another question in my comments and u have answered it correctly. i accecpted ur answer (the one in the comment) because i can't say that it was worng...
besides, i have also learnt something new from u, ie the HELP_SETCONTENTS command. thanx for that. i hope we can continue to exchange thoughts in future...
Keith
ASKER
Keith