[Gambas-user] Restore fullscreen mode at Form_Open fails

Benoit Minisini gambas at ...1...
Sat Sep 27 00:18:06 CEST 2008


On samedi 27 septembre 2008, Benoit Minisini wrote:
> On vendredi 26 septembre 2008, Patrik Karlsson wrote:
> > When I try this line in Form_Open
> >   ME.FullScreen = Settings["Main/FullScreen", FALSE]
> > If the setting is true, the only thing that happens is that the program
> > becomes a normal window in full size.
> >
> > However, if I have a timer that executes (once), after a short delay, the
> > line above, it works just fine.
> >
> > Is there a better way to do this without the extra timer?
>
> It seems to work with gb.gtk, but not gb.qt. I need to investigate...

As a workaround, I think you can set it in the constructor (_new) instead of 
Form_Open. It should work.

Regards,

-- 
Benoit Minisini




More information about the User mailing list