msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do i get integrated help

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise
Author Message
Ian



Joined: 04 Oct 2007
Posts: 69

PostPosted: Fri Oct 01, 2004 3:29 pm    Post subject: How do i get integrated help Reply with quote

Hi

I have written a VB6 application that I would like to include "What's this
help" and standard F1 help. The F1 help should load up HTML help files. And
the "?" help should just bring up a brief description of things.

My question is how do I build the HTML help file. And then how do I
integrate it into my application.

I have seen this done using API once but I don't remember how it was done.

Thanks,

Ian

Archived from group: microsoft>public>vb>enterprise
Back to top
View user's profile Send private message
vlad



Joined: 04 Oct 2007
Posts: 7

PostPosted: Fri Oct 01, 2004 6:26 pm    Post subject: Re: How do i get integrated help Reply with quote

Actually you don't need any API.
Every form and most of controls in VB has property HelpContextID.
The VB project has property 'Help File Name'.
You can use HTML Help Workshop (must be a part of Visual Studio)
to compile help files from the set of HTMP pages.

Do not forget to include *.c header file into the help project. Its format
is

#define ALIAS key

where alias is used to indicate a bookmark in HTML,
and the key is a number which you set to the HelpContextID property.
And in the help project you map aliases to the bookmarks.

Anyway, read helps to the HTML Help Workshop.

buy,
vlad.

"Ian" wrote: @tk2msftngp13.phx.gbl...
> Hi
>
> I have written a VB6 application that I would like to include "What's this
> help" and standard F1 help. The F1 help should load up HTML help files.
And
> the "?" help should just bring up a brief description of things.
>
> My question is how do I build the HTML help file. And then how do I
> integrate it into my application.
>
> I have seen this done using API once but I don't remember how it was done.
>
> Thanks,
>
> Ian
Back to top
View user's profile Send private message
Ian



Joined: 04 Oct 2007
Posts: 69

PostPosted: Fri Oct 01, 2004 4:35 pm    Post subject: Re: How do i get integrated help Reply with quote

How does VB know the differenc between "What's is this" help and F1 Help?





"vlad" wrote in message$1im5$1@pandora.alkar.net...
> Actually you don't need any API.
> Every form and most of controls in VB has property HelpContextID.
> The VB project has property 'Help File Name'.
> You can use HTML Help Workshop (must be a part of Visual Studio)
> to compile help files from the set of HTMP pages.
>
> Do not forget to include *.c header file into the help project. Its format
> is
>
> #define ALIAS key
>
> where alias is used to indicate a bookmark in HTML,
> and the key is a number which you set to the HelpContextID property.
> And in the help project you map aliases to the bookmarks.
>
> Anyway, read helps to the HTML Help Workshop.
>
> buy,
> vlad.
>
> "Ian" wrote:@tk2msftngp13.phx.gbl...
> > Hi
> >
> > I have written a VB6 application that I would like to include "What's
this
> > help" and standard F1 help. The F1 help should load up HTML help files.
> And
> > the "?" help should just bring up a brief description of things.
> >
> > My question is how do I build the HTML help file. And then how do I
> > integrate it into my application.
> >
> > I have seen this done using API once but I don't remember how it was
done.
> >
> > Thanks,
> >
> > Ian
>
>
>
>
Back to top
View user's profile Send private message
MikeD



Joined: 04 Oct 2007
Posts: 3348

PostPosted: Sat Oct 02, 2004 1:26 am    Post subject: Re: How do i get integrated help Reply with quote

"Ian" wrote in message@TK2MSFTNGP12.phx.gbl...
> How does VB know the differenc between "What's is this" help and F1 Help?


You have to write that in your help file (via context IDs), and then specify
the appropriate context ID's for your controls. It sounds to me like you
really need to consult VB's documentation a bit more. It covers most of
this. What it doesn't cover is actually writing the help file. You need to
consult HTML Help's documentation for that. IOW, consult Help on how to
write Help.

Take a look at the following:

http://msdn.microsoft.com/library/en-us/vbcon98/html/vbconAddingHelpToYourApplication.asp

Mike
Back to top
View user's profile Send private message
Ian



Joined: 04 Oct 2007
Posts: 69

PostPosted: Mon Oct 04, 2004 5:43 pm    Post subject: Re: How do i get integrated help Reply with quote

Thanks Mike



"MikeD" wrote in message@TK2MSFTNGP14.phx.gbl...
>
> "Ian" wrote in message
> @TK2MSFTNGP12.phx.gbl...
> > How does VB know the differenc between "What's is this" help and F1
Help?
>
>
> You have to write that in your help file (via context IDs), and then
specify
> the appropriate context ID's for your controls. It sounds to me like you
> really need to consult VB's documentation a bit more. It covers most of
> this. What it doesn't cover is actually writing the help file. You need
to
> consult HTML Help's documentation for that. IOW, consult Help on how to
> write Help.
>
> Take a look at the following:
>
>
http://msdn.microsoft.com/library/en-us/vbcon98/html/vbconAddingHelpToYourApplication.asp
>
> Mike
>
>
Back to top
View user's profile Send private message
Tom Esh



Joined: 04 Oct 2007
Posts: 416

PostPosted: Fri Oct 01, 2004 4:28 pm    Post subject: Re: How do i get integrated help Reply with quote

On Fri, 1 Oct 2004 12:35:09 +0100, "Ian" wrote:

>How does VB know the differenc between "What's is this" help and F1 Help?

It doesn't. The only difference is in how the help topic is
~displayed~. It's merely a difference in the args passed to the
WinHelp Api behind the scenes which in this case determine whether the
topic is shown in a popup window or in a normal "framed" window.


-Tom
MVP - Visual Basic
(please post replies to the newsgroup)

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group