Re: [Gambas-user] Restore fullscreen mode at Form_Open fails

2008-10-04 Thread Patrik Karlsson
Den Saturday 27 September 2008 00:18:06 skrev Benoit Minisini: > > > Is there a better way to do this without the extra timer? > As a workaround, I think you can set it in the constructor (_new) instead > of Form_Open. It should work. Thank you, it worked just fine, and it's much cleaner without m

Re: [Gambas-user] Restore fullscreen mode at Form_Open fails

2008-10-04 Thread Benoit Minisini
On samedi 27 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. > > > > It seems to work w

Re: [Gambas-user] Restore fullscreen mode at Form_Open fails

2008-10-04 Thread Benoit Minisini
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

Re: [Gambas-user] Restore fullscreen mode at Form_Open fails

2008-09-26 Thread Patrik Karlsson
> > 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. > It seems to work with gb.gtk, but not gb.qt. I need to investigate... Ok, please d

Re: [Gambas-user] Restore fullscreen mode at Form_Open fails

2008-09-26 Thread Benoit Minisini
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 exec

Re: [Gambas-user] Restore fullscreen mode at Form_Open fails

2008-09-26 Thread Olivier Cruilles
Hello Patrik, I think it doesn't work because only TEXT was avaible by Settings function. Try somethink like that: if Settings["Main/FullScreen", FALSE] = "TRUE" then Me.FullScreen = TRUE else Me.FullScreen = FALSE end if And the same procedure to store the boolean value by th

[Gambas-user] Restore fullscreen mode at Form_Open fails

2008-09-26 Thread Patrik Karlsson
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