Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
How To Add a Font Button to an HTML Help Window Toolbar
Article ID: 240062 - View products that this article applies to.
This article was previously published under Q240062
It is not possible to add a Font button using the HTML Help Workshop. You must do this by manually editing the HTML Help project file. This article explains how to add a Font button to an HTML Help window toolbar.
A Window Type is a special configuration that is used to create styles of a Help window. The configuration of Window Type controls which buttons and tabs are used in the compiled HTML Help file. There are options for adding most buttons from the Window Type dialog box. Buttons that cannot be set from the dialog box can be added by editing the Help project file.
The following steps describe how to add a Font button. NOTE: Before doing any of the steps below, make a full backup.
Edit the Project from within the HTML Help Workshop
Edit the HTML Help Project File (.hhp)
Finishing the Changes
Explanation of the FixThe number modified in the project file (0x10387E) contains the settings of the check boxes on the Buttons tab in the Window Types dialog box. This is a hexadecimal number (base 16), which is broken-down by HTML Help into a binary number (a number composed of only 1 and 0). Note that binary numbers are read from right to left. Each 1 in the binary number indicates a checked box on the Buttons tab. The 21st digit in this number needs to be set to 1 in order to indicate that the Font button should appear. The HTML Help Workshop does not support the setting of the 21st bit, which is why there is not check box for the Font button.
Note that the "0x" in front of the number indicates that the number is a hexadecimal number and is not a decimal number. The actual number is "10387E" not "0x10387E." Below is an example of what the Window Type line looks like after its been modified.
Hexadecimal Binary ----------- ===================== 10387E = 100000011100001111110 ^--21st bit
Why was it necessary to click the Default Positions button? The setting of the Default Positions on the Positions tab was done in order to provide a reference point for finding the number to modify in the project file since the positions are surrounded by the bracket "" characters.
Article ID: 240062 - Last Review: June 29, 2004 - Revision: 1.1