[Gambas-user] How to get the focus back?

Matti math.eber at ...221...
Tue Sep 7 21:22:56 CEST 2010


Thanks, Jussi. (that was really fast!)

Here it's revision 3164 @ OpenSuse 11.2
And FText.form definitively loses focus after error message.
Strange.

Am 07.09.2010 21:14, schrieb Jussi Lahtinen:
> I tested your code with Gambas 3 revision 3119 @ Ubuntu 10.04 64bit.
> And I couldn't reproduce the problem.
> FText.form doesn't lost focus after error message.
> However TextBox1 on it does, but that is correct behaviour
> (TextBox1.SetFocus is commented out).
> 
> Jussi
> 
> 
> On Tue, Sep 7, 2010 at 21:59, Matti <math.eber at ...221...> wrote:
> 
>> Gambas 3
>> Another beginner's question:
>>
>> I have a little form where the user should make some input.
>> When there's something wrong, I give a message and want the user to correct
>> the
>> input.
>> But after the message the focus goes "down" to FMain - I just can't find a
>> way
>> to get it back to the input form.
>> The only way I see is to show the input form as "ShowModal" - but then it's
>> displayed centered relative to the desktop, which is ridiculous.
>>
>> An example is attatched.
>> Anybody knows how to?
>> Thanks, Matti
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
> 
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 




More information about the User mailing list