Back

SetScreenMode

Hello World

Changes the screen mode of your application.

app.SetScreenMode( mode )

If null is passed, the app menu will be dismissed. When called, the global OnConfig function will be called (if defined).

Example - SetScreenMode Demo

function OnStart()
{
    lay = app.CreateLayout( "Linear", "Vertical,VCenter,FillXY" );

    spn = app.CreateSpinner( "Default,Normal,Full,Game" );
    spn.SetOnChange( SetScreenMode );
    lay.AddChild( spn );

    app.AddLayout( lay );
}

function SetScreenMode( mode )
{
    app.SetScreenMode( mode );
}
    Copy     Copy All       Run      
string: “Default” or “Normal” or “Full” or “Game”