Re: [Gambas-user] TrayIcon control

2008-12-05 Thread Benoit Minisini
On mercredi 3 décembre 2008, Toni wrote: > Hi, > > I'm using the "trayicon" control and I have found a couple of problems > with it. > > If I use "ShowModal" or "ShowDialog" to show a Form within one of its > "events" it happens that: 1. It does'nt prevent the control from getting > new events, and

Re: [Gambas-user] TrayIcon control

2008-12-05 Thread Demosthenes Koptsis
ok back to your code, replace this code PUBLIC SUB ButtonExit_Click() ME.Persistent = FALSE ME.Close END with this one PUBLIC SUB ButtonExit_Click() ME.Persistent = FALSE QUIT END try to quit instead of close form. is that you want? On 12/4/08, Toni <[EMAIL PROTECTED]> wrote: >

Re: [Gambas-user] TrayIcon control

2008-12-05 Thread Demosthenes Koptsis
a note the line ME.Persistent = FALSE is useless if you call QUIT ! On 12/5/08, Demosthenes Koptsis <[EMAIL PROTECTED]> wrote: > ok back to your code, > > replace this code > > PUBLIC SUB ButtonExit_Click() >ME.Persistent = FALSE >ME.Close > END > > > with this one > > PUBLIC SUB ButtonExi

Re: [Gambas-user] TrayIcon control

2008-12-04 Thread Toni
Hi Demosthenes, I have changed my code in FMain Close event to ".Hide()" and to ".Show()" in TrayIcon1 DblClick event (instead of setting FMain visible property to FALSE/TRUE), with no difference. It still has the same two problems... Regards, Toni En/na Demosthenes Koptsis ha escrit: > i pr

Re: [Gambas-user] TrayIcon control

2008-12-04 Thread Demosthenes Koptsis
i propose to hide or show the FMain form instead close it. so this code may help you PUBLIC SUB TrayIcon1_DblClick() 'when double click tray icon show or hide FMain IF FMain.Visible = TRUE THEN FMain.Visible = FALSE ELSE FMain.Visible = TRUE END IF END PUBLIC SUB btnHide_Click()

Re: [Gambas-user] TrayIcon control

2008-12-03 Thread Toni
Hi, I have created a new project "gb.gui" with two forms, "Fmain" (startup class) and "Form1". "Fmain" has a Button "ButtonExit" and one IconTray "TrayIcon1". What I am trying to accomplish is that the application can be only "exited" clicking on the button. When the form "Fmain" is Closed, it

Re: [Gambas-user] TrayIcon control

2008-12-03 Thread Ron
Benoit Minisini schreef: > On mercredi 3 décembre 2008, Toni wrote: > >> Hi, >> >> I'm using the "trayicon" control and I have found a couple of problems >> with it. >> >> If I use "ShowModal" or "ShowDialog" to show a Form within one of its >> "events" it happens that: 1. It does'nt prevent the

Re: [Gambas-user] TrayIcon control

2008-12-03 Thread Benoit Minisini
On mercredi 3 décembre 2008, Toni wrote: > Hi, > > I'm using the "trayicon" control and I have found a couple of problems > with it. > > If I use "ShowModal" or "ShowDialog" to show a Form within one of its > "events" it happens that: 1. It does'nt prevent the control from getting > new events, W

Re: [Gambas-user] TrayIcon control

2008-12-03 Thread Nicolas Koch
Toni, Are you using gb.gtk, gb.gui or gb.qt? I have replicated the same error only with gb.qt or using gb.gui while in KDE. Regards, Nick On Wed, Dec 3, 2008 at 8:46 PM, Toni <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using the "trayicon" control and I have found a couple of problems > with it.

[Gambas-user] TrayIcon control

2008-12-03 Thread Toni
Hi, I'm using the "trayicon" control and I have found a couple of problems with it. If I use "ShowModal" or "ShowDialog" to show a Form within one of its "events" it happens that: 1. It does'nt prevent the control from getting new events, and 2. if the application is Closed with that Form stil