Back

SetMenu

SetMenu.

  app.SetMenu( list, iconPath )

Example - Example



function OnStart()
{
    app.SetMenu( "Start,Stop,Pause" );
}

function OnMenu( item )
{
    app.ShowPopup( item, "Short" );
}
    Copy     Copy All       Run      

Example - Menu Images



function OnStart()
{
    menus = "Files:Files.png,Settings:Settings.png";
    app.SetMenu( menus, "/Sys/Img" );
}

function OnMenu( item )
{
    app.ShowPopup( item, "Short" );
}
    Copy     Copy All       Run      

string: comma separated
string: path to file or folder ( "/absolute/..." or "relative/..." )