Back

Alert

Hello World

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.

See Also:

See Also: Error, ShowTextDialog, CreateYesNoDialog.

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
number: integer: -180..180
string: comma “,” separated: “NoDim”, “NoFocus”