HDAPISetToolbarButtonImage Method
This function lets callers specify alternate images for built-in toolbar buttons. It should be called before the toolbar is rendered for the first time, such as in the HDInterviewOptions.OnInit method.

JavaScript API: Direct
Assembly: api.js Version: 1.0.0.0 (1.0.0.0)
Syntax

JavaScript
function SetToolbarButtonImage(buttonId, imageNormal, imageHot, imageActive, imageActiveHot);

Parameters

buttonId
Type: SystemString
This is the unique identifier for one of the following built-in toolbar buttons: HDAnsSummary, HDSaveAnswers, HDOutlineToggle, HDOutlineDropDown, HDInstUpdateToggle, HDSinglePageToggle, HDResourcePaneToggle, HDDocPreview. HDIcon can be used to replace the HotDocs icon. In this case only imageNormal will be used.

HDDocPreview currently doesn't work in Silverlight. Use your custom image names when calling HDAddCustomToolbarButton instead.

imageNormal
Type: SystemString
This is the normal image for the button.

To avoid ambiguity, you should use a full URL for this and all other image files passed to this function.

imageHot
Type: SystemString
This is the image for the button when the mouse is hovered over it.
imageActive
Type: SystemString
This is the image for the button when it is active.
imageActiveHot
Type: SystemString
This is the image for the button when it is active and the mouse is hovered over it.
Remarks

Silverlight interviews support only .PNG and .JPG images. If you intend to use the Silverlight interview format, make sure to use a supported image type.

See Also

Reference