Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Winhelp query...

Posted on 1998-02-17
6
Medium Priority
?
213 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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 200 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

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 The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

636 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