home

Disabling Buttons/Menus in the Help Window - Help Authoring Site

home Buy This Domain search
Help Authoring: Disabling Buttons/Menus in the Help Window - Help Authoring Site

Disabling Buttons/Menus in the Help Window - Help Authoring Site

Microsoft do not support removal of buttons which appear in the Help window, but it is possible to disable them. Follow the steps below, the example is for the print button.

Step 1

Edit EasyHelp.INI and add

DisablePrint=DB(`btn_print')

under the [Help Buttons] section as shown below.

[Help Buttons]

DisablePrint=DB(`btn_print')

Step 2

Edit the advanced project settings to tell EasyHelp to use the DisablePrint button defintion.

Click... Config | Edit project | Advanced

add DisablePrint in the field that lists the button defintions to use. Each button definition is seperated by commas. So yours should read

Disableprint,exit

Also:

Edit the advance project settings (Config | Edit Project | Advanced) and add the following statement the 'macros' field

DisableButtons,DisableMenus

Note that the menus can be removed by DisableMenus using any help compiler however the buttons can only be removed if you use the hcrtf.exe (32 bit) help compiler.

Also you have to edit the 'Killbtns.mac' file in the easyhelp\macros folder so that you replace 'EasyHelp/Web Example' with your Help file Windows title.

This is rather difficult to explain but one you have understood what to do it only take a few seconds to implement. Have a go and get back to us if you need more help. Try it on the EasyHelp/Web examples first

From the help file....

DisableButton

------------------

DisableButton(button-ID)

Disables (grays out) a button on the WinHelp button bar.

Parameter Description

button-ID Specifies the standard button identifier or the identifier assigned to the button by the CreateButton macro.

Comments

A button that is disabled by the DisableButton macro cannot be used in the topic until it is re-enabled by the EnableButton macro or re-activated by a user. For example, a disabled Contents, Index, or Help Topics button is re-enabled if a user clicks an interfile jump.

Help Workshop automatically converts the DisableButton macro to DB.

Standard Button & Menu Ids

The following are the internal identifiers of the standard Winhelp buttons:

Button Id Button

btn_contents Contents

btn_search Search

btn_back Back

btn_history History

btn_previous Browse previous (<<)

btn_next Browse next (>>)

btn_print Print

The following are the internal identifiers of the standard Winhelp menu:

Button Id Button

mnu_file File

mnu_edit Edit

mnu_bookmark Bookmark

mnu_helpon Help

Related Topics:

Chapter 22: Help -- Advanced Techniques

Chapter 21: Help -- Using Macros

Help Authoring: Disabling Buttons/Menus in the Help Window - Help Authoring Site

Amazon Prime Free Trial


Help Authoring: Disabling Buttons/Menus in the Help Window - Help Authoring Site