MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Reference page 172

Dreamweaver api reference
Table of Contents

Advertisement

Arguments
menuId
The
argument is the string that defines the menu in the insertbar.xml file.
menuId
Returns
A string value defining the ID of the default item.
Example
The following example assigns the current default object for the Media menu to the
variable:
var defId = dw.objectPalette.getMenuDefault("DW_Media");
dreamweaver.objectPalette.setMenuDefault()
Availability
Dreamweaver MX 2004.
Description
Sets the default object for a pop-up menu. The default object's icon represents the specified
pop-up menu on the Insert bar. The user can click on the default object to insert it, or click
on the arrow beside the default object to open the pop-up menu and see the other objects in
that menu. Dreamweaver sets the new menu default the next time the user opens
Dreamweaver or uses the Reload Extensions command.
Arguments
menuId, defaultId
The
argument is the string that defines the menu in the insertbar.xml file.
menuId
The
argument is the string that defines the new default object in the
defaultId
insertbar.xml field.
Returns
A Boolean value:
true
Example
The following example sets the Flash object as the default object for the Media menu:
dw.objectPalette.setMenuDefault("DW_Media", "DW_Flash");
172
Workspace
if the new default is successfully set;
otherwise.
false
defID

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver 8

Table of Contents