Feb 6, 2014 Replies: 41 With this library you can add system tray icons and handle their events. This is useful for applications that should run in the background and still allow the user to interact with. Tray icons have two events: DoubleClick and MenuClick. The menu appears when the user right clicks on the icon. Usually when the user closes the last form the process exits. The process will however keep running if there is at least one visible tray icon. This library is an internal library now. If you don't see it in the IDE then you can download it here: https://www.b4x.com/android/forum/threads/updates-to-internal-libaries.48274/#post-441231 Attachments SystemTrayExample.zip SystemTrayExample.zip 1.6 KB · Views: 2,717 Last edited: Jul 31, 2016 Click to expand...
With this library you can add system tray icons and handle their events. This is useful for applications that should run in the background and still allow the user to interact with. Tray icons have two events: DoubleClick and MenuClick. The menu appears when the user right clicks on the icon. Usually when the user closes the last form the process exits. The process will however keep running if there is at least one visible tray icon. This library is an internal library now. If you don't see it in the IDE then you can download it here: https://www.b4x.com/android/forum/threads/updates-to-internal-libaries.48274/#post-441231
Pascual Pérez Member Licensed User Longtime User Feb 6, 2014 #2 Fantastic Erel, i really needed this, thank you very much.
Gabino A. de la Gala Well-Known Member Licensed User Longtime User Feb 6, 2014 #3 Pascual Pérez said: Fantastic Erel, i really needed this, thank you very much. Click to expand... +1
jmon Well-Known Member Licensed User Longtime User Feb 8, 2014 #7 thanks, very easy to use. May I suggest adding a blink (or flash) tray icon option? that would be great to attract the user's attention. thanks.
thanks, very easy to use. May I suggest adding a blink (or flash) tray icon option? that would be great to attract the user's attention. thanks.
Erel B4X founder Staff member Licensed User Longtime User Feb 9, 2014 #8 You can easily implement it in your project. Add a transparent icon and use a timer to replace the icon.
You can easily implement it in your project. Add a transparent icon and use a timer to replace the icon.
Pascual Pérez Member Licensed User Longtime User Feb 12, 2014 #9 Erel, would it be possible to implement the event SingleClick? i use a tray icon as a toggle to hide/show a window. Thank you.
Erel, would it be possible to implement the event SingleClick? i use a tray icon as a toggle to hide/show a window. Thank you.
Pascual Pérez Member Licensed User Longtime User Feb 15, 2014 #10 Is there a way to show a notification balloon in the tray icon?
Erel B4X founder Staff member Licensed User Longtime User Feb 16, 2014 #11 Is there a way to show a notification balloon in the tray icon? Click to expand... There isn't any "automatic" way to do it. You can create an undecorated form and then show it as a notification. Though it will not be simple to find the correct position.
Is there a way to show a notification balloon in the tray icon? Click to expand... There isn't any "automatic" way to do it. You can create an undecorated form and then show it as a notification. Though it will not be simple to find the correct position.
Gabino A. de la Gala Well-Known Member Licensed User Longtime User Feb 16, 2014 #12 What about something like this? http://www.b4x.com/android/forum/threads/36086
Erel B4X founder Staff member Licensed User Longtime User Feb 16, 2014 #13 I haven't tried it. If you can try it and report...
jmon Well-Known Member Licensed User Longtime User Feb 17, 2014 #14 Pascual Pérez said: Is there a way to show a notification balloon in the tray icon? Click to expand... Gabino A. de la Gala said: What about something like this? http://www.b4x.com/android/forum/threads/36086 Click to expand... Hi, I just uploaded a class that I think will be helpful for both of you : http://www.b4x.com/android/forum/threads/jnotifications-simple-tray-notifications-class.37897/
Pascual Pérez said: Is there a way to show a notification balloon in the tray icon? Click to expand... Gabino A. de la Gala said: What about something like this? http://www.b4x.com/android/forum/threads/36086 Click to expand... Hi, I just uploaded a class that I think will be helpful for both of you : http://www.b4x.com/android/forum/threads/jnotifications-simple-tray-notifications-class.37897/
Gabino A. de la Gala Well-Known Member Licensed User Longtime User Feb 17, 2014 #15 Erel said: I haven't tried it. If you can try it and report... Click to expand... I have used it in a DUCKDNS monitor joining tray icon, timer, configuration local storage, etc. The result is like this:
Erel said: I haven't tried it. If you can try it and report... Click to expand... I have used it in a DUCKDNS monitor joining tray icon, timer, configuration local storage, etc. The result is like this:
Pascual Pérez Member Licensed User Longtime User Feb 17, 2014 #16 jNotifications is just what i needed, thank you very much jmon.
Pascual Pérez Member Licensed User Longtime User Feb 17, 2014 #17 It would be possible that the notification appears above all other windows (topmost in desktop) ?
Pascual Pérez Member Licensed User Longtime User Feb 17, 2014 #19 GMan said: Mine appears on top Click to expand... I think it appears only above the Owner form, defined when calling .Initialize()
GMan said: Mine appears on top Click to expand... I think it appears only above the Owner form, defined when calling .Initialize()
Erel B4X founder Staff member Licensed User Longtime User Feb 17, 2014 #20 JavaFX v2 doesn't provide a global on top feature. It might be possible with a library that creates a Swing window.
JavaFX v2 doesn't provide a global on top feature. It might be possible with a library that creates a Swing window.