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
Summary of Contents for DREAMWEAVER MX 2004
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...