beautypg.com

Reswin.setcallbackcommands(), Reswin.setcolumnwidths() – Adobe Dreamweaver API Reference CS5 User Manual

Page 154

background image

149

DREAMWEAVER API REFERENCE

Workspace

Last updated 8/27/2013

Arguments
cmdDoc, arrButtons

The cmdDoc argument is a document object that represents the command that is calling the function. Commands
should use the keyword this.

The arrButtons argument is an array of strings that correspond to the button text and the JavaScript code to execute
when the button is clicked. This is similar to the way the

commandButtons()

function works for commands. Only

two buttons can be set in the window.

Returns
Nothing.

resWin.setCallbackCommands()

Availability
Dreamweaver 4.

Description
Tells the Results window on which commands to call the

processFile()

method. If this function is not called, the

command that created the Results window is called.

Arguments
arrCmdNames

The arrCmdNames argument is an array of command names on which to call the

processFile()

function.

Returns
Nothing.

resWin.setColumnWidths()

Availability
Dreamweaver 4.

Description
Sets the width of each column.

Arguments
arrWidth

The arrWidth argument is an array of integers that represents the widths to use for each column in the control.

Returns
Nothing.