Adobe 38040334 - Dreamweaver CS3 User Manual page 176

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Returns
A Boolean value:
if the toolbar is visible,
true
Example
The following example checks whether the toolbar
that value in the
variable:
retval
var retval = dom.getToolbarVisibility("myEditbar");
return retval;
dom.setToolbarItemAttribute()
Availability
Dreamweaver MX 2004.
Description
Changes an attribute value for the three image attributes or the tooltip attribute on a toolbar item.
Arguments
toolbarID, toolbarItemId, attrName, attrValue
• The
argument is a string that specifies the ID of the toolbar.
toolbarID
• The
argument is a string that specifies the ID of the toolbar item.
toolbarItemId
• The
argument is a string that specifies the name of the attribute to set. Valid values are '
attrName
'
, '
overImage'
disabledImage'
• The
argument is a string that specifies the value to set.
attrValue
Returns
Nothing.
Example
The following example calls
attributes for the toolbar item
tooltip
var dom = dw.getDocumentDOM();
dom.setToolbarItemAttribute('DW_Toolbar_Main', 'MyButton', 'image',
'Toolbars/imgs/newimage.gif');
dom.setToolbarItemAttribute('DW_Toolbar_Main', 'MyButton', 'imageOver',
'Toolbars/imgs/newimageOver.gif');
dom.setToolbarItemAttribute('DW_Toolbar_Main', 'MyButton', 'tooltip', 'One fine button');
dom.setShowToolbarIconLabels()
Availability
Dreamweaver MX.
Description
This function tells Dreamweaver to show the labels of buttons that have labels. Dreamweaver always shows labels for
non-button controls, if the labels are defined.
if the toolbar is not visible or does not exist.
false
myEditbar
, or '
.
tooltip'
dom.setToolbarItemAttribute()
on the toolbar having the ID
MyButton
is visible in the document window, and then stores
three times to set the
image
DW_Toolbar_Main
DREAMWEAVER CS3
API Reference
,
image'
,
, and
imageOver
:
171

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents