dreamweaver.getFontStyles()
Availability
Dreamweaver 4.
Description
Returns the styles that a specified TrueType font supports.
Arguments
fontName
• The
argument is a string that contains the name of the font.
fontName
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
• The
argument must be one of the following values:
key
and
refer to the Control key; on the Macintosh,
"Ctrl"
Returns
A Boolean value that indicates whether the key is pressed.
Example
The following code checks that both the Shift and Control keys (Windows) or Shift and Command keys (Macintosh)
are pressed 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.
,
,
, or
"Cmd"
"Ctrl"
"Alt"
refers to the Option key.
"Alt"
DREAMWEAVER CS3
API Reference
. In Windows,
"Shift"
"Cmd"
411