Solved

Winhelp query...

Posted on 1998-02-17
6
210 Views
Last Modified: 2012-05-04
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.

I have tried HELP_FINDER, HELP_CONTENTS, HELP_SETCONTENTS and they don;t seem to work well. The scenario below describes what I mean.

In Delphi's help menu, try clicking on the Contents command. Then click on the Index tab. Now close the help dialog and go to the Contents menu again. It will display the Index tab.

I am interested to know how the Contents page can be correctly displayed when it is selected from the help menu.

Keith
0
Comment
Question by:keithcsl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 1

Author Comment

by:keithcsl
ID: 1359473
Edited text of question
0
 
LVL 5

Expert Comment

by:ronit051397
ID: 1359474
This is from
C:\Program Files\Borland\Delphi 3\HELP\TOOLS\Hcw.hlp:

Comments      

The following values may also be used, however, since they are not in windows.h, you must add them to your own header file:
#define HELP_FORCE_GID      0x000e
#define HELP_TAB                        0x000f

fuCommand      Action      dwData
HELP_FORCE_GID      Changes to the .GID file associated with the help                 file passed in as the lpszHelpFile parameter.                      Ignored; set to 0.
HELP_TAB      Opens the Help Topics dialog box, displaying the                 specified extensible tab.      Zero-based index                 of the extensible tab to display (0 is the first                 tab, 1 the second, etc.).
-----------------
You need to use the HELP_TAB, but first you need to add it to the definitions in Delphi.
0
 
LVL 1

Author Comment

by:keithcsl
ID: 1359475
ronit

Thanx for that piece of information. i have decalared a constant in my program, ie

  HELP_TAB = $000F

and tried the function. well, it did bring up the contents tab without fail but i couldn't access the other tabs, ie the Index tab.

have u tried it and got it working?

btw, i am happy to accept ur comment as an answer, so it would be great if u could repost it as an asnwer.

Keith
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 5

Expert Comment

by:ronit051397
ID: 1359476
As far as I understand, you need to call the contents with the TabIndex of 0:
WinHelp(Handle, 'some help file path', HELP_TAB, 0)

The Index With the TabIndex of 1:
WinHelp(Handle, 'some help file path', HELP_TAB, 1)

The Find With the TabIndex of 2:
WinHelp(Handle, 'some help file path', HELP_TAB, 2)

Did you do it this way?
0
 
LVL 5

Accepted Solution

by:
ronit051397 earned 50 total points
ID: 1359477
I have checked, and as you said it works only for the contents.

0
 
LVL 1

Author Comment

by:keithcsl
ID: 1359478
That's fine. thanks a lot for confirming that.

PS: I am using the HELP_PARTIALKEY to display the Index tab.

Keith
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question