Button, Checkbutton – Adobe Extending Dreamweaver CS4 User Manual

Page 113

Advertising
background image

107

EXTENDING DREAMWEAVER CS4

Insert bar objects

Example

<menubutton

id="DW_ImageMenu"
name="Images"
image="Common\imagemenu.gif"
folder="Images">

<button id="DW_Image"

image="Common\Image.gif"
enabled=""
showIf=""
file="Common\Image.htm" />

</menubutton>

<button />

Description
This tag defines a button on the Insert bar that the user clicks to execute the code that the

command

or

file

attributes

specify.

Attributes

id, image, name, {canDrag}, {showIf}, {enabled}, {command}, {file}, {tag}, {codeOnly}

Example

<button id="DW_Object"

image="Common\Object.gif"
name="Object"
enabled="true"
showIf=""
file="Common\Obect.htm"

/>

<checkbutton />

Description
A checkbutton is a button that has a checked or unchecked state. When clicked, a checkbutton appears pressed in and
highlighted. When it is unchecked, a checkbutton appears flat. Dreamweaver has Mouse-over, Pressed, Mouse-over-
while-pressed, and Disabled-while-pressed states. The command must ensure that clicking the checkbutton causes its
state to change.

Attributes

id, image, checked, {showIf}, {enabled}, {command}, {file}, {tag}, {name}, {codeOnly}

Example

<checkbutton id="DW_StandardView"

name = "Standard View"
image="Tools\Standard View.gif"
checked="_View_Standard"
command="dw.getDocumentDOM().setShowLayoutView(false)"/>

Advertising
This manual is related to the following products: