Re: [Gambas-user] Menu has no Click() event

2016-10-03 Thread Demosthenes Koptsis
yes you are right ... it was my mistake during copy/paste On 3/10/2016 21:00 μμ, Gianluigi wrote: > In my Ubuntu the your code without *hMenu.Name = "hMenu"* do not work. > > And this code is unnecessary: > > Public Sub TrayIcon1_Click() > > hMenu.Popup > > End > > Public Sub Timer1_Timer() >

Re: [Gambas-user] Menu has no Click() event

2016-10-03 Thread Gianluigi
In my Ubuntu the your code without *hMenu.Name = "hMenu"* do not work. And this code is unnecessary: Public Sub TrayIcon1_Click() hMenu.Popup End Public Sub Timer1_Timer() If Me.Visible == True Then Me.Visible = False Endif End 2016-10-03 18:38 GMT+02:00 Demosthenes Koptsis :

Re: [Gambas-user] Menu has no Click() event

2016-10-03 Thread Demosthenes Koptsis
Yes it works also in Ubuntu Mate. Final code: -- ' Gambas class file Public hMenu As Menu Public hMenu2 As Menu Public hMenu3 As Menu Public Sub Form_Open() TrayIcon1.PopupMenu = "hMenu" TrayIcon1.Show TrayIcon1.Visible = True 'Create the popup menu h

Re: [Gambas-user] Menu has no Click() event

2016-10-03 Thread Charlie
Your code works fine in Linux Mint 18 Cinnamon 64bit http://www.cogier.com/gambas/TestG.png -- View this message in context: http://gambas.8142.n7.nabble.com/Menu-has-no-Click-event-tp57442p57457.html Sent from the gambas-user mailing list archive at N

Re: [Gambas-user] Menu has no Click() event

2016-10-03 Thread Gianluigi
Changes so without timer: Public Sub Form_Open() 'Create the popup menu hMenu = New Menu(Me, True) As "goofy" hMenu.Name = "hMenu" hMenu2 = New Menu(hMenu) As "pluto" hMenu2.Text = "Mount ISO" hMenu3 = New Menu(hMenu) As "donald duck" hMenu3.Text = "Unmount ISO" TrayIcon

Re: [Gambas-user] Menu has no Click() event

2016-10-03 Thread Demosthenes Koptsis
On 3/10/2016 16:10 μμ, Gianluigi wrote: > You can take a look here [0]. > I repeat, in Ubuntu click the icon is not registered by the poject. What does it mean? In Ubuntu, the TrayIcon is been seen correctly. But when i click it, Public Sub TrayIcon1_Click() is been called. How can i have access

Re: [Gambas-user] Menu has no Click() event

2016-10-03 Thread Gianluigi
You can take a look here [0]. I repeat, in Ubuntu click the icon is not registered by the poject. Regards Gianluigi [0] http://gambas.8142.n7.nabble.com/TrayIcon-question-td55955.html [System] Gambas=3.9.90 r7884 OperatingSystem=Linux Kernel=4.4.0-38-generic Architecture=x86_64 Distribution=Ubuntu

Re: [Gambas-user] Menu has no Click() event

2016-10-03 Thread Demosthenes Koptsis
On 3/10/2016 14:39 μμ, Benoît Minisini wrote: > Le 03/10/2016 à 13:33, Demosthenes Koptsis a écrit : >> On 3/10/2016 14:21 μμ, Benoît Minisini wrote: >>> Le 03/10/2016 à 10:32, Demosthenes Koptsis a écrit : Hello, i try to implement a systray icon with a popup menu. In wiki

Re: [Gambas-user] Menu has no Click() event

2016-10-03 Thread Demosthenes Koptsis
On 3/10/2016 14:39 μμ, Benoît Minisini wrote: > Le 03/10/2016 à 13:33, Demosthenes Koptsis a écrit : >> On 3/10/2016 14:21 μμ, Benoît Minisini wrote: >>> Le 03/10/2016 à 10:32, Demosthenes Koptsis a écrit : Hello, i try to implement a systray icon with a popup menu. In wiki

Re: [Gambas-user] Menu has no Click() event

2016-10-03 Thread Benoît Minisini
Le 03/10/2016 à 13:33, Demosthenes Koptsis a écrit : > On 3/10/2016 14:21 μμ, Benoît Minisini wrote: >> Le 03/10/2016 à 10:32, Demosthenes Koptsis a écrit : >>> Hello, >>> >>> i try to implement a systray icon with a popup menu. >>> >>> In wiki says that each menu has a Click() event but i cannot f

Re: [Gambas-user] Menu has no Click() event

2016-10-03 Thread Demosthenes Koptsis
On 3/10/2016 14:21 μμ, Benoît Minisini wrote: > Le 03/10/2016 à 10:32, Demosthenes Koptsis a écrit : >> Hello, >> >> i try to implement a systray icon with a popup menu. >> >> In wiki says that each menu has a Click() event but i cannot find it in >> code. >> >> I attach the small project. >> > Are

Re: [Gambas-user] Menu has no Click() event

2016-10-03 Thread Benoît Minisini
Le 03/10/2016 à 10:32, Demosthenes Koptsis a écrit : > Hello, > > i try to implement a systray icon with a popup menu. > > In wiki says that each menu has a Click() event but i cannot find it in > code. > > I attach the small project. > Are you using the last version finally? -- Benoît Minisini

Re: [Gambas-user] Menu has no Click() event

2016-10-03 Thread Gianluigi
True, both Ubuntu that Mint no response from direct clicks. Only by clicking on the menu. Regards Gianluigi 2016-10-03 10:32 GMT+02:00 Demosthenes Koptsis : > Hello, > > i try to implement a systray icon with a popup menu. > > In wiki says that each menu has a Click() event but i cannot find it

[Gambas-user] Menu has no Click() event

2016-10-03 Thread Demosthenes Koptsis
Hello, i try to implement a systray icon with a popup menu. In wiki says that each menu has a Click() event but i cannot find it in code. I attach the small project. TestG.tar.gz Description: GNU Zip compressed data -