Re: hhctrl.ocx usage

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Randy Birch (rgb_removethis_at_mvps.org)
Date: 02/27/04


Date: Fri, 27 Feb 2004 18:22:49 -0500

I've never seen the entire html help window (ie with the contents, index and
search tabs) embedded in a web page. Parts of it, yes, where each part
(contents, index) were separate link pages. If you visit
http://www.mvps.org/vb/ccrptmr/helpMain.htm you'll see Karl has HTML help
set up for his timer control in a framed setup.

To create the contents page, you'll have to write a file to disk (eg
webContents.htm) containing:

    <object id=hhctrl type="application/x-oleobject"
classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" width="100%"
height="300">
      <param name="Command" value="Contents">
      <param name="Item1" value="myhelpfile.hhc">
      <param name="Font" value="Arial,9">
    </object>
    </p>

You would then create a second similar file (eg webIndex.htm) ) with Index
specified as the Command ...

      <param name="Command" value="Index">
      <param name="Item1" value="myhelpfile.hhc">

You would also create two HREF links on the page to call either of these two
pages, ie ...

<a HREF="webContents.htm" TARGET="name of other frame">Index</a>
<a HREF="webIndex.htm" TARGET="name of other frame">Index</a>

... and finally create the frames page that loads one of the two pages
above. Each of the pages from the help file are also individual HTML files,
called when the links in the html control are clicked. In other words, the
actual CHM file is not used on-line, but rather a set of files - one HTML
page per CHM page - which in total comprise the entire help file.

Karl's two pages providing the contents and index info are
   http://www.mvps.org/vb/ccrptmr/webToc.htm
   http://www.mvps.org/vb/ccrptmr/webIndex.htm

Your HTML help creation utility should be able to create these HTML files
for you (Karl used RoboHelp.)

-- 
Randy Birch
MVP Visual Basic
http://vbnet.mvps.org/
Please respond only to the newsgroups so all can benefit.
"Dimsion" <dimsion@hotmail.com> wrote in message 
news:ODo0cHV$DHA.392@TK2MSFTNGP12.phx.gbl...
: Thanks for the help,
:
: Let me start over with the question. I think i was real drunk when i first
: asked the question.
:
: The HTML Class was mainly for calling the Help CHM file for external view
: and its not embedded into the VB form.
: What i mean from this is that i want to load a form with a browser control
: and inside this browser control i will do a document write that will load
: the HHCTRL.OCX and point to the CHM file.
:
: write something like this in the browser control, but i'm not sure how to
: use HHCTRL.OCX to load the file up with the tri-panel.
:
: <OBJECT ID=HHCtrl TYPE="application/x-oleobject"
:     CLASSID="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"
:     CODEBASE="HHCtrl.ocx#Version=4,73,8259,0"
:     WIDTH=12
:     HEIGHT=12>
:
:     <PARAM NAME="Command" VALUE="Related Topics">
:     <PARAM NAME="Button" VALUE="Text:Related Topics">
:     <PARAM NAME="Item1" VALUE="First topic;topic1.htm">
:     <PARAM NAME="Item2" VALUE="Second topic;topic2.htm">
: </OBJECT>
:
: is it possible or am i still drunk? ;)
:
:
:
: "bob" <anonymous@discussions.microsoft.com> wrote in message
: news:36F41D62-ADF4-4580-8A61-E654C2B0A258@microsoft.com...
: > The link is http://www.mvps.org/htmlhelpcenter/
: >
: > Once there, goto HTML help and download the VB class.  It is very easy 
to
: use and very powerful.  Per Randy's suggestion, I have used it for my
: purposes, and it works great.
: >
: > Bob
:
: 

Quantcast