Specifications
479
Returns
An array of three Boolean values that indicates what the font supports. The first value indicates
whether the font supports Bold, the second indicates whether the font supports Italic, and the
third indicates whether the font supports both Bold and Italic.
dreamweaver.getKeyState()
Availability
Dreamweaver 3
Description
Determines whether the specified modifier key is depressed.
Arguments
key
key
must be one of the following values: "Cmd", "Ctrl", "Alt", or "Shift". In Windows, "Cmd"
and
"Ctrl" refer to the Control key; on the Macintosh, "Alt" refers to the Option key.
Returns
A Boolean value that indicates whether the key is depressed.
Example
The following code checks that both the Shift and Control keys (Windows) or Shift and
Command keys (Macintosh) are down before performing an operation:
if (dw.getKeyState("Shift") && dw.getKeyState("Cmd")){
// execute code
}
dreamweaver.getNaturalSize()
Availability
Dreamweaver 4
Description
Returns the width and height of a graphical object.
Arguments
url
url
points to a graphical object for which the dimensions are wanted. Dreamweaver must
support this object (GIF, JPEG, PNG, Flash, and Shockwave). The URL that is provided as the
argument to
getNaturalSize() must be an absolute URL that points to a local file; it cannot be
a relative URL.
Returns
An array of two integers where the first integer defines the width of the object and the second
defines the height.