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

Matti math.eber at ...221...
Tue Sep 7 20:59:49 CEST 2010


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tar.gz
Type: application/x-gzip
Size: 6562 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20100907/51487298/attachment.bin>


More information about the User mailing list