Adobe 38040334 - Dreamweaver CS3 User Manual page 177

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Example
_
<BUTTON ID="DW
DocRefresh"
image="Toolbars/images/MM/refresh.gif"
disabledImage="Toolbars/images/MM/refresh
tooltip="Refresh Design View (F5)"
enabled="((dw.getDocumentDOM() != null) && (dw.getDocumentDOM().getView() != 'browse')
&& (!dw.getDocumentDOM().isDesignViewUpdated()))"
command="dw.getDocumentDOM().synchronizeDocument()"
update="onViewChange,onCodeViewSyncChange"/>
<checkbutton>
Description
A check button is a button that has a checked or unchecked state and that executes a specific command when clicked.
When it is checked, it appears pressed in and highlighted. When it is not checked, it appears flat. Dreamweaver
implements the following states for the check button: Mouse-over, Pressed, Mouse-over-while-pressed, and
Disabled-while-pressed. The handler that is specified by the
function must ensure that clicking the check button causes the button's state to toggle.
Attributes
id, {showIf}, image, {disabledImage}, {overImage}, tooltip, {label}, {file}, {domRequired},
{enabled}, checked, {update}, command, {arguments}
For a description of each attribute, see "Item tag attributes" on page 175.
Contents
None.
Container
The
tag or the
toolbar
toolbarset
Example
_
<CHECKBUTTON ID="DW
LiveDebug"
image="Toolbars/images/MM/debugview.gif"
disabledImage="Toolbars/images/MM/globe
tooltip="Live Debug"
enabled="dw.canLiveDebug()"
checked="dw.getDocumentDOM() != null && dw.getDocumentDOM().getView() == 'browse'"
command="dw.toggleLiveDebug()"
showIf="dw.canLiveDebug()"
update="onViewChange"/>
<radiobutton>
Description
A radio button is exactly the same as a check button, except that when it is off, it appears as a raised button. Dream-
weaver implements the following states for the radio button: Mouse-over, Pressed, Mouse-over-while-pressed, and
Disabled-while-pressed. Dreamweaver does not enforce mutual exclusion between radio buttons. The handler that
the
attribute or the
checked
states of radio buttons are consistent with each other.
tag.
function specifies must ensure that the checked and unchecked
isCommandChecked()
_
dis.gif"
attribute or the
checked
_
dis.gif"
DREAMWEAVER CS3
Extending Dreamweaver
isCommandChecked()
171

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents