ShortCut
Previous Topic  Next Topic 

This option is available from the "Insert | HtmlHelp Control" menu and is a HtmlHelp specific option. It is used for launching other Applications.


Launching the Calculator

  1. Select "Insert | HtmlHelp Control | ShortCut"
  2. Set "Display Options" to "As a Button" and type in "Calculator" in the "Caption" field
  3. In the "Program" field below, type in "calc.exe" and click [OK]
  4. Compile and test. You should have a button like this:- Click it and the calculator will load. Each of the other options is explained in detail below.


Display Options

Hidden

Hides this option. Useful if you are referring to this control from code

As a Button

Creates a clickable button with caption


Button Options

Caption

If you chose a display option of a Button then the caption you type below will appear on your button

Bitmap

Use the ellipsis button below to choose a bitmap to represent this control. The bitmap must be in your HtmlHelp folder, not your images folder, and must be shipped along with your CHM file

Icon

As with the Image option, you can use the ellipsis button below to choose a icon to represent this control. The icon must be in your HtmlHelp folder, not your images folder, and must be shipped along with your CHM file


Program Options

Program

Use the ellipsis button below to choose an exe. You will need the full path if it cannot be found in the normal search paths for Windows such as the windows and system folders.

Parameters

If your program takes any parameters add them here.

Class

If you know the program class then you can optionally type it here or use a windows spy utility to find out what your program class is called.


Windows Messages

Message

You can choose from a list of standard windows messages that are supported. These will be sent to your program.

WPARAM

Type in a number to be sent to your program in conjunction with the message above, if required.

LPARAM

Type in a number to be sent to your program in conjunction with the message above, if required.

Error Page

If for some reason your program cannot be loaded then you can optionally type in the url of a html page that may contain some useful information for the user.