sysTraySetAction()

Changes an attribute of a system tray action identified by its ID.

Synopsis

int sysTraySetAction(int id, string attribute, anytype value)

Parameter

Parameter Description
id Id (return value) of the action that was added using sysTraySetAction().
attribute

Following attributes are available:

  • enabled => Is used to set the menu entry enabled or disabled

  • visible => Is used to set the menu entry (in)visible

  • separator => Is used to set/remove a separator

  • text => Is used to set the text of the menu entry dynamically

  • checkable => Is used to set a menu entry checkable

  • checked => Is used to set a menu entry checked

  • icon => A filename (relative to the pictures directory), which is given to use as icon.

value

Value for the selected attribute

Return Value

Returns 0 on success. Returns -1 if an unknown ID is provided.

Details

-

Availability

CTRL

Assignment

System Tray