Click to return to the HTML Help home page    
TCard     Methods     HTML Help ActiveX Control...    
Web Workshop  |  DHTML, HTML & CSS  |  HTML Help

WinHelp Command


Microsoft Corporation

Updated June 10, 1999

Purpose

Displays a WinHelp topic in the WinHelp primary window, a WinHelp secondary window, or in a WinHelp pop-up window. The specific window attributes, such as size and position, background color, and button bar items, are based on the definitions in the [WINDOWS] section of the specified WinHelp project (.hpj) file.

This command can be used only with a compiled help (.chm) file.

Syntax

<PARAM  name="Command" value="WinHelp [,Popup]>
<PARAM  name="Item2"   value="topic ID|map number">
<PARAM  name="Item1"   value="WinHelp (.hlp) file path [>window name]">
[<PARAM name="Button"  value="[Text: Button text|Bitmap: Bitmap file path|Icon:Icon file path]">]
[<PARAM name="Font"    value="Facename[, point size[, charset[, color[, PLAIN BOLD ITALIC UNDERLINE]]]]">]
[<PARAM name="Text"    value="Text: Link text">]


Property Description
Button Specifies the button style. Optional.
Command Calls the WinHelp command and specifies a WinHelp window type.
  • To display a pop-up WinHelp window, type Popup.

  • To display a secondary WinHelp window, do not specify a window type and specify a window name in the Item1 parameter.

  • To display the WinHelp main window, do not specify a window type or a window name (in the Item1 parameter).
Font Specifies the font attributes. Optional.
Item1 Specifies the file path of the WinHelp (.hlp) file in which the WinHelp topic is stored, and the window name of the target window.

The window name must be preceded by the ">" character.

Do not specify a window name if you typed Popup in the Command parameter or if you want the topic to appear in the WinHelp main window.

Item2 Specifies the topic ID or map number of the WinHelp topic to display.
Text Specifies the link text. Optional.

Example

<OBJECT

id=winhelp
type="application/x-oleobject"
classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"
codebase="hhctrl.ocx#Version=4,72,8252,0"
width=100
height=100 >
<PARAM name="Command" value="WinHelp">
<PARAM name="Button" value="Text: Candomble Overview">
<PARAM name="Item1" value="c:\winhelp\candomble_wh.hlp>MyWindow">
<PARAM name="Item2" value="myth_candomble_overview">
</OBJECT>

Comments


link to overview topic About commands
 


Back to topBack to top

Did you find this material useful? Gripes? Compliments? Suggestions for other articles? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.