RBox.ReorderChild


public function ReorderChild

Prototype:

public function ReorderChild(object Child, integer position)

Parameters

Child
the child that must be reordered
position
the new position in the children list of his parent

Description:

This function changes the order of a child. For example, we have a box, with two buttons, one with the Caption "Button1" and the other one "Button2" . In the box we have Botton1 and then Button2; if box.ReorderChild(button2, 0) is called, then Button2 will appear first(Button2 | Button1).

Return value:

This function returns the result of {SendMessage}(not to be considered important}, but throws the following error messages as string: "Invalid position in reorder child" : if the position is invalid "Object has not children" : if the object has no children