Back

ShowTip

Hello World

Shows a tooltip message on the screen.

app.ShowTip( message, left, top, timeOut, options )

Example - Show Tool-Tip

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

    edt = app.CreateTextEdit( "", 0.5 );
    lay.AddChild( edt );

    app.AddLayout( lay );

    var pos = edt.GetPosition( "screen" );
    app.ShowTip( "Type some text here", pos.left, pos.top, 3000, "Down" );

}
    Copy     Copy All       Run      
string
number: fraction (0..1)
number: milliseconds
string: comma “,” separated: “Down”