Adobe 38040334 - Dreamweaver CS3 User Manual page 165

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

Advertisement

isCommandChecked()
Description
Determines whether to display a check mark next to the menu item.
Arguments
{arg1}, {arg2},...{argN}
If it is a dynamic menu item, the unique ID that the
argument. Otherwise, if the
the
isCommandChecked()
page 159, and "setMenuText()" on page 160 functions) as one or more arguments. The
for distinguishing between two menu items that call the same menu command.
Note: The
attribute is ignored for dynamic menu items.
arguments
Returns
Dreamweaver expects a Boolean value:
Example
function isCommandChecked()
{
var bChecked = false;
var cssStyle = arguments[0];
if (dw.getDocumentDOM() == null)
return false;
if (cssStyle == "(None)")
{
return dw.cssStylePalette.getSelectedStyle() == '';
}
else
{
return dw.cssStylePalette.getSelectedStyle() == cssStyle;
}
return bChecked;
}
receiveArguments()
Description
Processes any arguments passed from a menu item or from the
item, it processes the dynamic menu item ID.
Arguments
{arg1}, {arg2},...{argN}
If it is a dynamic menu item, the unique ID that the
argument. Otherwise, if the
the
receiveArguments()
page 159, and "setMenuText()" on page 160 functions) as one or more arguments. The
for distinguishing between two menu items that call the same menu command.
getDynamicContents()
attribute is defined for a
arguments
function (and to the "canAcceptCommand()" on page 157, "receiveArguments()" on
if a check mark should appear next to the menu item;
true
getDynamicContents()
attribute is defined for a
arguments
function (and to the "canAcceptCommand()" on page 157, "isCommandChecked()" on
function specifies is the only
tag, the value of that attribute passes to
menuitem
arguments
function. If it is a dynamic menu
dw.runCommand()
function specifies is the only
tag, the value of that attribute passes to
menuitem
arguments
DREAMWEAVER CS3
159
Extending Dreamweaver
attribute is useful
otherwise.
false
attribute is useful

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents