DFrameStyle: setPos

DFrameStyle: setWidth

DFrameStyle: setHeight

DFrameStyle.setPos: Set a default position for instantiation of DFrames if the position parameter of the constructor is set to null.

DFrameStyle.setWidth. Set the width of the DFrame, or the minimal width if setAutoWidth() is used with a parameter.

DFrameStyle.setHeight. Set the height of the DFrame, or the minimal height if setAutoHeight() is used with a parameter.

Example

var dFrameStyle = new DFrameStyle()

dFrameStyle.setPos([10, 10, 90, 90])

var dFrame = new DFrame(null, title, dFrameStyle)

if strictly equivalent to

var dFrame = new DFrame(([10, 10, 90, 90], title, dFrameStyle)

Syntaxes

DFrameStyle.setPos(position)

DFrameStyle. setWidth(number)

DFrameStyle. setHeight(number)

Parameters

position

Array of 4 values. Indicates coordinates and dimensions of the DFrame.

Coordinates are in % of the DFrame's parent size if numbers, in pixels if strings. The '*' value allow a centered position.

See position in Reference documentation for more information.

number

Integer. The width of the DFrame

Usage

Note that the setPos values will be overwritten by the position parameter if set in the instantiation of the object.