Event: onTrayIconRightClick


onTrayIconRightClick( Menu menu )

Summary

Called whenever the user right-clicks on the DigiGuide icon in the notification area.


Parameters

ParameterDescription
Menu menu


Examples

Code below is taken from the standard notification area icon script shipped with DigiGuide at the time of writing.

function onstdTrayIconRightClick( menu )
{
if( app.isMinimised() )
{
menu.insertItem( "&&Show DigiGuide", "ShowHideDigiGuide" );
}
else
{
menu.insertItem( "&&Hide DigiGuide", "ShowHideDigiGuide" );
}

menu.insertSeparator();
menu.insertItem( "Search For a &&Programme...", "SwitchToFinderView" );

menu.insertSeparator();
menu.insertItem( "Check For &&New Listings", "SwitchToGetNewListings" );
menu.insertItem( "Enable &&Alerts", "ToggleAlertsEnable" );

menu.insertSeparator();
menu.insertItem( "&&Exit DigiGuide", "ExitDigiGuide" );
}

app.addEventHandler( "onTrayIconRightClick", onstdTrayIconRightClick );


See Also

  • App : addEventHandler
  • Menu


    Requirements

    1110