Solved

Winhelp query...

Posted on 1998-02-17
6
208 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
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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Using idhttp to login to instagram 2 106
how to center only a line in richedit? 4 61
SUM 2 INTEGER ARRAYS INTO 1 10 108
Twebbrowser add css to the header 3 28
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

829 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