[Gambas-user] Creating a balloon pointing at a tray icon

Bruce Steers bsteers4 at gmail.com
Tue Oct 26 16:22:15 CEST 2021


On Tue, 26 Oct 2021 at 11:11, Cristiano Guadagnino <criguada at gmail.com>
wrote:

> Thank you Bruce!!
> This saved my day ;-)
>
> Cris
> [image: cloudHQ] <https://www.free-email-tracker.com> Powered by
> cloudHQ <https://www.free-email-tracker.com>
>
> Il giorno lun 25 ott 2021 alle ore 17:05 Bruce Steers <bsteers4 at gmail.com>
> ha scritto:
>
>> As system tray uses DBus you could use a DBus desktop notification
>> instead...
>>
>> DBus["session://org.freedesktop.Notifications"]["/org/freedesktop/Notifications",
>> "org.freedesktop.Notifications"].Notify("", 0, "", "Hello world!", "This is
>> the notification body.", Null, Null, 3000)
>>
>> BruceS
>>
>>
>> On Mon, 25 Oct 2021 at 11:18, Cristiano Guadagnino <criguada at gmail.com>
>> wrote:
>>
>>> Hi Benoit,
>>> is it possible to create a balloon pointing at a tray icon?
>>> When I try to do it, I get a message saying "Type not corresponding:
>>> looking for Control, found TrayIcon" (approximately... I am translating
>>> from Italian).
>>> However, looking at the "control" class I see that everything derives
>>> from "control", except the "menu" class. So TrayIcon should be derived from
>>> "control" too.
>>> It it a bug?
>>>
>>> Attached you see a screenshot of the message.
>>>
>>> Thank you in advance
>>> Cris
>>>
>>>
You are welcome, there is more to the Notify() command like giving icons
and stuff.
see here...
https://specifications.freedesktop.org/notification-spec/notification-spec-latest.html

I've not used it much so cannot really help further, I'm just good with
alternatives :)

BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20211026/9ac56bfd/attachment.htm>


More information about the User mailing list