Re: [Gambas-user] Stopping an event when user clicks on the form menu

2014-01-25 Thread Bruce
On Sat, 2014-01-25 at 21:19 +0100, Fabien Bodard wrote: > Or If > Application.ActiveControl.Window <> Me.Window Ah! I was so close. In fact probably too close to see the obvious. Thanks Fabien for taking the time. Bruce --

Re: [Gambas-user] Stopping an event when user clicks on the form menu

2014-01-25 Thread Fabien Bodard
2014-01-25 Bruce : > On Fri, 2014-01-24 at 16:21 +0100, Fabien Bodard wrote: >> http://gambasdoc.org/help/comp/gb.qt4/application/activecontrol?v3 >> >> Returns the control having the focus. >> >> But return null for a menu or when the form lose the focus >> > > Thanks Fabien, that's what I needed.

Re: [Gambas-user] Stopping an event when user clicks on the form menu

2014-01-24 Thread Bruce
On Fri, 2014-01-24 at 16:21 +0100, Fabien Bodard wrote: > http://gambasdoc.org/help/comp/gb.qt4/application/activecontrol?v3 > > Returns the control having the focus. > > But return null for a menu or when the form lose the focus > Thanks Fabien, that's what I needed... ... but it's strange, n

Re: [Gambas-user] Stopping an event when user clicks on the form menu

2014-01-24 Thread Fabien Bodard
http://gambasdoc.org/help/comp/gb.qt4/application/activecontrol?v3 Returns the control having the focus. But return null for a menu or when the form lose the focus 2014/1/24 Fabien Bodard : > This is how to do with svn version ... > > > Public Sub Form_Open() > Balloon.Delay = 1000 > End > > Pub

Re: [Gambas-user] Stopping an event when user clicks on the form menu

2014-01-24 Thread Fabien Bodard
This is how to do with svn version ... Public Sub Form_Open() Balloon.Delay = 1000 End Public Sub TextBox1_LostFocus() If IsNull(Application.ActiveControl) Then Return If Len(Last.Text) < 8 Then Balloon.Error("this must be filled before anything else", Last) TextBox1.Select() Last.

Re: [Gambas-user] Stopping an event when user clicks on the form menu

2014-01-23 Thread Charlie Reinl
Am Freitag, den 24.01.2014, 09:56 +1030 schrieb Bruce: > I have a form with a textbox that "MUST" be filled in before moving on > to the next control or any other control within the form. Fine, so I > implement a txtManditory_LostFocus method that just checks that there is > some text in there. >

[Gambas-user] Stopping an event when user clicks on the form menu

2014-01-23 Thread Bruce
I have a form with a textbox that "MUST" be filled in before moving on to the next control or any other control within the form. Fine, so I implement a txtManditory_LostFocus method that just checks that there is some text in there. My problems are: 1) if the entire form loses focus, the lostfocus