Livecode Wiki
Advertisement

This message is sent when the user click on one of the option of the systray icon menu:

Systray Icon Menu

Syntax:

on statusiconmenuPick pItem
  ...
end statusiconmenuPick 

The pItem contains the text of the line selcted by the user.

For example:

on statusiconmenuPick pItem
  switch pItem      
     case "Show"
        set the iconic of stack "TrayIcon" to False    
        Set the statusicon to Empty  # Add this to remove the icon from the windows tray
        Set the statusicontooltip to empty # Add this to remove the icon from the windows tray
        Set the statusiconmenu to empty # Add this to remove the icon from the windows tray
        break         
     case "Clear"                                                                                        
        answer "Clear"
        break         
     case "Delete"         
        answer "Delete"
        break
        -- more case statements here
  end switch
end statusiconmenuPick

See also: StatusIcon, statusIconTooltip, statusiconmenu, statusicondoubleclick

Advertisement