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
Содержание DREAMWEAVER MX 2004-DREAMWEAVER API
Страница 1: ...Dreamweaver API Reference...
Страница 24: ...24 Contents...
Страница 32: ......
Страница 70: ...70 Chapter 5 Fireworks Integration...
Страница 76: ...76 Chapter 6 Flash Integration...
Страница 116: ...116 Chapter 9 The JavaBeans API...
Страница 140: ......
Страница 152: ...152 Chapter 11 Application...
Страница 218: ...218 Chapter 12 Workspace...
Страница 248: ...248 Chapter 13 Site...
Страница 292: ...292 Chapter 14 Document...
Страница 378: ...378 Chapter 17 Design...
Страница 430: ...430 Chapter 18 Code...
Страница 486: ...486 Index...