User Guide

206 Chapter 12: Workspace
Example
The following example tells Dreamweaver to show the labels for the buttons on the toolbars:
dom.setShowToolbarIconLabels(true);
dom.setToolbarPosition()
Availability
Dreamweaver MX.
Description
This function moves the specified toolbar to the specified position.
Note: There is no way to determine the current position of a toolbar.
Arguments
toobar_id, position, relative_to
The toolbar_id argument is the ID of the toolbar, which is the value of the ID attribute on
the toolbar tag in the toolbars.xml file.
The position argument specifies where Dreamweaver positions the toolbar, relative to other
toolbars. The possible values for
position are described in the following list:
top is the default position. The toolbar appears at the top of the document window.
below makes the toolbar appear at the beginning of the row immediately below the toolbar
that
relative_to specifies. Dreamweaver reports an error if the toolbar does not find the
toolbar that
relative_to specifies.
floating makes the toolbar float above the document. Dreamweaver automatically places
the toolbar so it is offset from other floating toolbars. On the Macintosh,
floating is
treated the same way as
top.
relative_to="toolbar_id" is required if position specifies below. Otherwise, it is ignored.
Specifies the ID of the toolbar below which this toolbar should be positioned.
Returns
Nothing.
Example
The following example sets the position of myEditbar below the myPicturebar toolbar:
dom.setToolbarPosition("myEditbar", "below", "myPicturebar");
dom.setToolbarVisibility()
Availability
Dreamweaver MX.
Description
This function shows or hides the specified toolbar.
000_DW_API_Print.book Page 206 Wednesday, August 20, 2003 9:14 AM