Hello All,
I would like to create Tray Item Menus and Tray Item notifications. The latter is the harder part for me. How can I create a notification that will appear in the System Tray, then be removed either when the user clicks on it, or it times out. Preferrably, I need this to work in Win, Mac and Linux.
Any advice, direction or samples would really be appreciated!
Xojos’ Tray Item Example of TrayItem Class would be a good starting point. I suggest you to check this out first. You will find it in Subfolder “Desktop”/ “TrayItem”. But it only works in Windows and Linux what makes me to extend your question:
What about Top Menubar on Mac OS X, where you also have kinda “TrayIcons” like volume control, WLAN, Bluetooth, Dropbox etc. Wouldn’t it be great to use for this? Or I am missing something?
You can use the MBS Plugins with NSStatusItemMBS class to get a statusitem on Mac.
For Windows you can use the build in TrayItem class or the WindowsSystemTrayMBS class.
I use the tray item for menu just fine. But I am looking for other notifcations. I came across this post in the old forum . I think the proper name for this is “balloon” or notification window. The Xojo TrayItem class, does not appear to support this - at least the documentation does not mention it specifically.
Does anyone know if or how to use the TrayItem class to create a balloon or notification window at the system tray?
Thank you,
Tim