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
--
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.
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
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
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.
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.
>
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