Back

ShowTip

JS Py
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" );

}
from native import app

def OnStart():
    lay = app.CreateLayout( "linear", "VCenter,FillXY" )

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

    app.AddLayout( lay )

    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: “Down”