AddSysTrayIcon()
Syntax
Result = AddSysTrayIcon(#SysTrayIcon, WindowID, ImageID)Description
Add an icon in the SysTray area. If #PB_Any is used as the '#SysTrayIcon' parameter, the new systray icon number will be returned as 'Result'. WindowID must be a valid WindowID(). ImageID must be a previously loaded image (using LoadImage() or using CatchImage()). Icon image type (.ico) are only supported on Windows, for Linux it is advised to use a PNG image (in order to have a transparency layer). ImageID() may be used to get this ID easily.
When an event occurs on any of the SysTray icons the #PB_Event_SysTray event is returned. EventGadget() can be used to know which SysTrayIcon has been used. EventType() functions is also updated by this function.
Note: All SysTray icons are automatically removed when the program ends.
Supported OS
All