Solved

Winhelp query...

Posted on 1998-02-17
6
206 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
  • 3
  • 3
6 Comments
 
LVL 1

Author Comment

by:keithcsl
Comment Utility
Edited text of question
0
 
LVL 5

Expert Comment

by:ronit051397
Comment Utility
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
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 5

Expert Comment

by:ronit051397
Comment Utility
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
Comment Utility
I have checked, and as you said it works only for the contents.

0
 
LVL 1

Author Comment

by:keithcsl
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now