beautypg.com

Toolbarcontrols() – Adobe Extending Dreamweaver CS4 User Manual

Page 325

background image

319

EXTENDING DREAMWEAVER CS4

Components

function handleDoubleClick(componentRec)

{

var selectedObj = dw.serverComponentsPalette.getSelectedNode();
if(dwscripts.IS_WIN)
{


if (selectedObj && selectedObj.wsRec && selectedObj.wsRec[ProxyGeneratorNamePropName])
{

if (selectedObj.objectType == "Root")
{

editWebService();
return true;

}
else if (selectedObj.objectType == "MissingProxyGen")
{

displayMissingProxyGenMessage(componentRec);
editWebService();
return true;

}

}

}
return false;

}

toolbarControls()

Availability
Dreamweaver MX.

Description
Every component type returns a list of

toolBarButtonRec

objects, which represents the toolbar icons, in left-to-right

order. Each

toolBarButtonRec

object contains the following properties:

Property name

Description

image

Path to image file

disabledImage

Optional; path to disabled image searches for the toolbar button

pressedImage

Optional; path to pressed image searches for the toolbar button

toolTipText

Tooltip for the toolbar button

toolStyle

Left/right

This manual is related to the following products: