Specifications
638
Example
var dom = dw.getDocumentDOM();
if(dom != null && dom.getToolbarVisibility("myEditbar") == false)
{
dom.setToolbarVisibility("myEditbar", true);
{
dom.setToolbarPosition()
Availability
Dreamweaver MX
Description
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
• toolbar_id is the ID of the toolbar, which is the value of the ID attribute on the toolbar tag 
in the toolbars.xml file.
• position 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 causes the toolbar to 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 causes the toolbar to 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" This argument 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
dom.setToolbarPosition("myEditbar", "below", "myPicturebar");
dom.getToolbarIdArray()
Availability
Dreamweaver MX
Description
Returns an array of the IDs of all the toolbars in the application. You can use 
dom.getToolbarIdArray() to turn off all toolbars so you can reposition them and make only a 
specific set visible.










