[Gambas-user] Setting focus to form.

Gianluigi bagonergi at ...626...
Tue Nov 29 11:38:34 CET 2016


frmGenerating.ShowModal or ShowDialog?

Regards
Gianluigi

2016-11-29 1:50 GMT+01:00 Cam Era <cybercamera at ...626...>:

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