Example
function setMenuText()
{
if (arguments.length != 1) return "";
var whatToDo = arguments[0];
if (whatToDo == "undo")
return dw.getUndoText();
else if (whatToDo == "redo")
return dw.getRedoText();
else return "";
}
windowDimensions()
Description
Sets specific dimensions for the Parameters dialog box. If this function is not defined, the window
dimensions are computed automatically.
Note: Do not define this function unless you want a dialog box that is larger than 640 x 480 pixels.
Arguments
platform
•
The value of the
user's platform.
Returns
Dreamweaver expects a string of the form
The returned dimensions are smaller than the size of the entire dialog box because they do not
include the area for the OK and Cancel buttons. If the returned dimensions do not accommodate
all options, scroll bars appear.
Example
The following example of
to 648 x 520 pixels:
function windowDimensions(){
return "648,520";
}
160
Chapter 8: Menus and Menu Commands
argument is either
platform
windowDimensions()
or
"macintosh"
"widthInPixels,heightInPixels"
sets the dimensions of the Parameters dialog box
, depending on the
"windows"
.
Need help?
Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?
Questions and answers