Method TrayIcon():setIcon() Foundation

Changes the tray icon.

Syntax
:setIcon( <anoIcon>, <nIconIndex> ) --> lSuccess
Parameters
<anoIcon>
The icon to be set. Can be a numeric resource identifier or an XbpIcon object. In addition, an array of XbpIcon objects or resource identifiers can be passed.
<nIconIndex>
Optional parameter with the first image to display from in the array in <anoIcon>. Defaults to 1.
Return

.T. (true) if the icon is changed, or .F. (false) in case of an error.

Description

Changes the icon or icons displayed by the tray icon instance. If a list of icons is supplied, the tray icon alternates between these icons. This can be used to signify a "busy" state or to create an animation-like effect.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.