User Guide
202 Chapter 12: Workspace
Returns
Nothing.
Toolbar functions
The following JavaScript functions let you get and set the visibility of toolbars and toolbar labels,
obtain the labels of toolbar items in the current window, position toolbars, and obtain toolbar
IDs. For more information on creating or modifying toolbars, see “Toolbars” in Extending
Dreamweaver Help.
dom.forceToolbarUpdate()
Availability
Dreamweaver MX 2004.
Description
Forces the update handlers to run for all the items on the specified toolbar.
Arguments
toolbarID
• The toolbarID argument is the ID of the toolbar with the items Dreamweaver should update.
Returns
Nothing.
dom.getShowToolbarIconLabels()
Availability
Dreamweaver MX.
Description
This function determines whether labels for buttons are visible in the current document window.
Dreamweaver always shows labels for non-button controls, if the labels are defined.
Arguments
None.
Returns
A Boolean value: true if labels for buttons are visible in the current document window;
false otherwise.
Example
The following example makes labels for buttons visible:
var dom = dw.getDocumentDom();
if (dom.getShowToolbarIconLabels() == false)
{
dom.setShowToolbarIconLabels(true);
}
000_DW_API_Print.book Page 202 Wednesday, August 20, 2003 9:14 AM