Adobe 38040334 - Dreamweaver CS3 User Manual page 232

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

Advertisement

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.
Arguments
platform
• The
argument has a value of either
platform
Returns
Dreamweaver expects a string of the form
Example
The following example of the
it should be 420 pixels from the left and 20 pixels from the top in Windows, and 390 pixels from the left side of the
screen and 20 pixels from the top of the screen on the Macintosh:
function initialPosition(platform){
var initPos = "420,20";
if (platform == "macintosh"){
initPos = "390,20";
}
return initPos;
}
initialTabs()
Description
Determines which other floating panels are tabbed together the first time that this floating panel appears. If any listed
floating panel has appeared previously, it is not included in the tab group. To ensure that two custom floating panels
are tabbed together, each panel should reference the other with the
Arguments
None.
Returns
Dreamweaver expects a string of the form
Example
The following example of the
should be tabbed with the scriptEditor floating panel:
or
"Mac"
"leftPosInPixels,topPosInPixels"
function specifies that the first time the floating panel appears,
initialPosition()
"floaterName1,floaterName2,...floaterNameN"
function specifies that the first time the floating panel appears, it
initialTabs()
, depending on the user's platform.
"Win"
.
function.
initialTabs()
DREAMWEAVER CS3
226
Extending Dreamweaver
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents