Back

Alert

App.Alert shows a simple text dialog with a colored title and a 'Ok' button to exit.

  app.Alert( message, title, options, hue )

If title was not given the dialog looks like a normal alert box.
Without the NoDim option the background behind the dialog will be darkened.

Example - No Title



function OnStart()
{
    app.Alert( "Hello World!" );
}
    Copy     Copy All       Run      

Example - Yellow Title



function OnStart()
{
    app.Alert( "This is an alert box", "Hello Yellow World!", "", -100 );
}
    Copy     Copy All       Run      

string
string: "NoDim" or "NoFocus"
number: integer: -180..180