[Gambas-user] Setting focus to form.

Cam Era cybercamera at ...626...
Tue Nov 29 01:50:26 CET 2016


Greetings all.

I suspect that this is a question with an easy answer, but I've had no luck
in finding it.

In short, I have a project with two forms. One is the main form, the other
a splash screen.
While the first form loads, I display the splash screen with:

    frmGenerating.show

and when the application has completed its loading stage, I close the
splash screen with:

    frmGenerating.close

At that point, I'd like the focus to come back to my main form, but I have
found no way for this to occur. Things like FMain.SetFocus and
FMain.Activate don't achieve this.

Am using stock standard Ubuntu 16.04.

Any suggestions?

TIA

-- Cam



More information about the User mailing list