Adobe 38040334 - Dreamweaver CS3 User Manual page 133

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

Advertisement

dreamweaver.objectPalette.getMenuDefault()
Availability
Dreamweaver MX 2004.
Description
Retrieves the ID string of the default item for the associated menu.
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
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 insertbar.xml field.
defaultId
Returns
A Boolean value:
if the new default is successfully set;
true
Example
The following example sets the Flash object as the default object for the Media menu:
dw.objectPalette.setMenuDefault("DW_Media", "DW_Flash");
dreamweaver.reloadObjects()
Availability
Dreamweaver MX 2004.
defID
otherwise.
false
DREAMWEAVER CS3
API Reference
variable:
128

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents