property windowPlacement

(r/w) string windowPlacement;

Typ

Zugriff

This property sets and gets the window placement string. This is an XML string which should not be altered by the content author in anyway. The XML string contains the show state and the restored, minimized, and maximized positions of the specified window.
function saveAppPrefs()
{
    // Get window placement.
    var rootBox = scene.rootBox;
    if (rootBox)
    {
        var windowPlacement = rootBox.windowPlacement;
        if (windowPlacement)
        {
            // Save window placement string to preferences.
        }
    }
}

function loadAppPrefs()
{
    // Get window placement from app prefs.
    var windowPlacement = getWinPlacementFromPref();
    if (windowPlacement)
    {
        var rootBox = scene.rootBox;
        if (rootBox)
        {
            // Set window placement.
            rootBox.windowPlacement = windowPlacement;
        }
    }
}