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
Содержание 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...