Select the product you need help with
How To Add a Font Button to an HTML Help Window ToolbarArticle ID: 240062 - View products that this article applies to. This article was previously published under Q240062 On This PageSUMMARY
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.
MORE INFORMATION
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.
Hexadecimal Binary
----------- =====================
10387E = 100000011100001111110
^--21st bit
[WINDOWS] mytype="MyType","toc.hhc","Index.hhk","main.htm","main.htm",,,,,0x23520,,0x10387E,[268,218,851,536],0x4a0000,0x20000,,,,,0 PropertiesArticle ID: 240062 - Last Review: June 29, 2004 - Revision: 1.1
|



Back to the top








