Re: [Gambas-user] TrayIcon question

2016-04-16 Thread Gianluigi
I apologize for the delay of the answers. Benoit, any method I use before Quit (.Hide(), Delete(), Detach($hTray) either alone or together) I always get warnings. Zainudin, with your code does not go out by the application and if I add Quit go out with warnings. Sorry Gianluigi 2016-04-16 2:40 GMT

Re: [Gambas-user] TrayIcon question

2016-04-15 Thread zainudin ahmad
This example more clear, attach file I hope it's work On Sat, Apr 16, 2016 at 5:27 AM, Benoît Minisini < gam...@users.sourceforge.net> wrote: > Le 16/04/2016 00:00, Gianluigi a écrit : > > Unfortunately, even with the trunk, does not change anything > > With $hTray.Delete() I do not go out from a

Re: [Gambas-user] TrayIcon question

2016-04-15 Thread Benoît Minisini
Le 16/04/2016 00:00, Gianluigi a écrit : > Unfortunately, even with the trunk, does not change anything > With $hTray.Delete() I do not go out from application and Quit gives me > warnigs. > Regards > Gianluigi > You must hide the trayicon to allow the application to quit. -- Benoît Minisini --

Re: [Gambas-user] TrayIcon question

2016-04-15 Thread Gianluigi
Unfortunately, even with the trunk, does not change anything With $hTray.Delete() I do not go out from application and Quit gives me warnigs. Regards Gianluigi 2016-04-15 15:59 GMT+02:00 Benoît Minisini : > Le 15/04/2016 15:53, Gianluigi a écrit : > > Thank you Zainudin, > > unfortunately, also

Re: [Gambas-user] TrayIcon question (Plasma)

2016-04-15 Thread T Lee Davidson
On 04/14/2016 02:01 PM, Benoît Minisini wrote: > Le 14/04/2016 19:46, Gianluigi a écrit : >> Excuse me Lee, >> I did not believe that I created a monster, with so few lines of code. >> Ciao >> Gianluigi >> > > What make Plasma crashes is setting the menu. I will investigate why > exactly... I surel

Re: [Gambas-user] TrayIcon question

2016-04-15 Thread Gianluigi
Thank you very much Benoit Regards Gianluigi 2016-04-15 15:59 GMT+02:00 Benoît Minisini : > Le 15/04/2016 15:53, Gianluigi a écrit : > > Thank you Zainudin, > > unfortunately, also with your interesting code, I do not go out from > > application. > > See attached image (Stop is red). > > Regards

Re: [Gambas-user] TrayIcon question

2016-04-15 Thread Benoît Minisini
Le 15/04/2016 15:53, Gianluigi a écrit : > Thank you Zainudin, > unfortunately, also with your interesting code, I do not go out from > application. > See attached image (Stop is red). > Regards > Gianluigi > The bug should be fixed in revision #7745. Regards, -- Benoît Minisini -

Re: [Gambas-user] TrayIcon question

2016-04-15 Thread Gianluigi
Thank you Zainudin, unfortunately, also with your interesting code, I do not go out from application. See attached image (Stop is red). Regards Gianluigi 2016-04-15 2:26 GMT+02:00 zainudin ahmad : > That is from your code, maybe this can help. > > - Set property Persistent (Form property) to tru

Re: [Gambas-user] TrayIcon question

2016-04-14 Thread zainudin ahmad
That is from your code, maybe this can help. - Set property Persistent (Form property) to true ( http://gambaswiki.org/wiki/comp/gb.qt4/window/persistent) - Use _new() event instead open() - When close(exit) don't use quit, just set me.persistent = false and $hTray.Delete() attach fix project :)

Re: [Gambas-user] TrayIcon question

2016-04-14 Thread Benoît Minisini
Le 14/04/2016 20:01, Benoît Minisini a écrit : > Le 14/04/2016 19:46, Gianluigi a écrit : >> Excuse me Lee, >> I did not believe that I created a monster, with so few lines of code. >> Ciao >> Gianluigi >> > > What make Plasma crashes is setting the menu. I will investigate why > exactly... I surel

Re: [Gambas-user] TrayIcon question

2016-04-14 Thread Benoît Minisini
Le 14/04/2016 19:46, Gianluigi a écrit : > Excuse me Lee, > I did not believe that I created a monster, with so few lines of code. > Ciao > Gianluigi > What make Plasma crashes is setting the menu. I will investigate why exactly... I surely badly implemented a DBus answer for a corner case, but

Re: [Gambas-user] TrayIcon question

2016-04-14 Thread Gianluigi
Hello Jussi, the world is beautiful because it is different or variety is the spice of life. :-) Regards Gianluigi [System] Gambas=3.8.4 OperatingSystem=Linux Kernel=3.19.0-58-generic Architecture=x86_64 Distribution=Ubuntu 14.04.4 LTS Desktop=GNOME Theme=Cleanlooks Language=it_IT.UTF-8 Memory=159

Re: [Gambas-user] TrayIcon question

2016-04-14 Thread Gianluigi
Excuse me Lee, I did not believe that I created a monster, with so few lines of code. Ciao Gianluigi 2016-04-14 18:59 GMT+02:00 T Lee Davidson : > I cannot help you understand it, GianLuigi, because I don't understand it > either. But, I can say that it didn't play nice with my KDE Plasma v5.5.5

Re: [Gambas-user] TrayIcon question

2016-04-14 Thread Jussi Lahtinen
Works here as expected. [System] Gambas=3.8.90 r7641 OperatingSystem=Linux Kernel=3.13.0-37-generic Architecture=x86_64 Distribution=Linux Mint 17.2 Rafaela Desktop=GNOME Theme=Gtk Language=en_US.UTF-8 Memory=7985M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.

Re: [Gambas-user] TrayIcon question

2016-04-14 Thread T Lee Davidson
I cannot help you understand it, GianLuigi, because I don't understand it either. But, I can say that it didn't play nice with my KDE Plasma v5.5.5 on Qt v5.5.1. It kept repeatedly crashing Plasma in a loop until I killed it. On 04/14/2016 11:29 AM, Gianluigi wrote: I can not understand how wo

[Gambas-user] TrayIcon question

2016-04-14 Thread Gianluigi
I can not understand how works TrayIcon. Can someone help me. Attached small demonstration who gives me these Warnigs: gbx3: warning: circular references detected: gbx3: 1 FMain gbx3: 1 DBusStatusIcon gbx3: 1 DBusStatusIconMenu gbx3: 1 TrayIcon gbx3: 4 DBusObject gbx3: 1 Pi

Re: [Gambas-user] Trayicon question

2008-09-08 Thread Benoit Minisini
On lundi 08 septembre 2008, Ron wrote: > Benoit Minisini schreef: > > On dimanche 07 septembre 2008, Ron wrote: > >> Hi, > >> > >> I want to add trayicon functionality to my program. > >> So I have dragged a Trayicon object to my main form to start with. > >> > >> When I start my program I get an '

Re: [Gambas-user] Trayicon question

2008-09-08 Thread Ron
Benoit Minisini schreef: > On dimanche 07 septembre 2008, Ron wrote: > >> Hi, >> >> I want to add trayicon functionality to my program. >> So I have dragged a Trayicon object to my main form to start with. >> >> When I start my program I get an 'Embedding has failed' error. >> Since the message

Re: [Gambas-user] Trayicon question

2008-09-08 Thread Benoit Minisini
On dimanche 07 septembre 2008, Ron wrote: > Hi, > > I want to add trayicon functionality to my program. > So I have dragged a Trayicon object to my main form to start with. > > When I start my program I get an 'Embedding has failed' error. > Since the message is so sparse, I have no clue where to l

[Gambas-user] Trayicon question

2008-09-07 Thread Ron
Hi, I want to add trayicon functionality to my program. So I have dragged a Trayicon object to my main form to start with. When I start my program I get an 'Embedding has failed' error. Since the message is so sparse, I have no clue where to look... Do I miss a component, or forgot something? I'