Parameters

The order of parameters when calling a methods is free:

var dFrame = new DFrame(position, title, parentDFrame)

will be accepted as

var dFrame = new DFrame(parentDFrame, title, position)

The only rules are:

For Buttons:
object.addButton(caption, action [, buttonStyle[, position]]

§         the caption parameter must be before the action parameter and must be set as empty string if none.

For Bars:
DFrame.addBar([barStyle[, title[, position]]]

§         the title parameter must be before the position parameter and must be set as empty string if none.

For task Bars:
DFrame.addTaskBar([barStyle[, title[, position[, key]]]]])

§         the title parameter must be before the position parameter and must be set as empty string if none

§         the position parameter must be set before the key parameter and must be set as empty string if none.

Many developers have lost much time because they forgot those rules.