
120
EXTENDING DREAMWEAVER CS4
Insert bar objects
<button id="DW_Blue_Text" image="Editorial\AddBlue.gif name="Blue Text"
file="Editorial\AddBlue.htm"/>
Note: The button tag does not have a separate closing tag; it simply ends with "/>" .
7 End the pop-up menu with the </menubutton> closing tag.
The following code shows your entire category with the pop-up menu and the two objects:
<category id="DW_Insertbar_Editorial" name="Editorial" folder="Editorial">
<menubutton id="DW_Insertbar_Markup" name="markup"
image="Editorial\Strikethrough.gif" folder="Editorial">
<button id="DW_Editorial_Strikethrough"
image="Editorial\Strikethrough.gif" file="Editorial\Strikethrough.htm"/>
<button id="DW_Blue_Text" image="Editorial\AddBlue.gif" name="Blue Text"
file="Editorial\AddBlue.htm"/>
</menubutton>
</category>
Test the new pop-up menu
1 Reload extensions. For information on reloading extensions, see “Reloading extensions” on page 78.
2 Click the Editorial menu.
The following pop-up menu appears:
The objects API functions
This section describes the functions in the objects API. You must define either the insertObject() or the
objectTag() function. For details about these functions, see “insertObject()” on page 122. The remaining functions
are optional.
canInsertObject()
Availability
Dreamweaver MX.
Description
This function determines whether to display the Object dialog box.
Arguments
None.
Returns
Dreamweaver expects a Boolean value.
Comentários a estes Manuais