Macromedia dreamweaver 8-extending dreamweaver User Manual
The Floating panel API
299
getDockingSide()
Availability
Dreamweaver MX.
Description
Specifies the locations at which a floating panel can dock. The function returns a string that
contains some combination of the words
contains some combination of the words
"left"
,
"right"
,
"top"
, and
"bottom"
. If the label is
in the string, you can dock a floating panel to that side. If the function is missing, you cannot
dock a floating panel to any side.
dock a floating panel to any side.
You can use this function to prevent certain panels from docking on a certain side of the
Dreamweaver workspace or to each other.
Dreamweaver workspace or to each other.
Arguments
None.
Returns
Dreamweaver expects a string containing the words
"left"
,
"right"
,
"top"
, and
"bottom"
, or
a combination of them, that specifies where Dreamweaver can dock the floating panel.
Example
getDockingSide()
{
{
return dock_side = “left top”;
}
initialPosition()
Description
Determines the initial position of the floating panel the first time it is called. If this function is
not defined, the default position is the center of the screen.
not defined, the default position is the center of the screen.
Arguments
platform
■
The
platform
argument has a value of either
"Mac"
or
"Win"
, depending on the
user’s platform.
Returns
Dreamweaver expects a string of the form
"leftPosInPixels,topPosInPixels"
.