property anchor

(r/w) box anchor;

Typ

Zugriff

This property sets and gets the box that this box is anchored to. The anchor box is used for calculating offsets when the box is in a fixed position layout mode.
function SetupAnchor()
{
    var anchBox = scene.getBoxById("highLevelBox");
    var theBox = scene.getBoxById("targBox");
    if (anchBox && theBox)
    {
        theBox.anchor = anchBox;
    }
}