Harjo wrote:Found a real old topic about this:
viewtopic.php?f=2&t=2531&start=0with Johan arguing that he was against this..
I'm also not a big fan, of solutions, that do this EVERY time at start-up, but the servoy-client starts up default so small, that just one maximize is enough.
Johan, look at microsoft Office, OpenOffice, they ALL start maximized the first time
in Servoy 6 the plan is that windows get a bit nicer api so that servoy developers can control it a bit better.
Not everything is in stone but we could add something like
boolean setState(JSWindow constant)
And that window constant can then be JSWindow.minimized, JSWindow.maximized, JSWindow.normal
things like that.
But as you all know, i am against those setSize and setLocation all the time. That should only happen once.
So we could add besides setSize/setLocation/setState methods like:
setInitialXxxx()
And that is only used when the window (name) you now show is not yet know, if it is known (stored in settings) then initial will be ignored.
This way you can configure the default size and position for the main and all other windows, but let the user decide from then on where it wants it.
And servoy also takes care of remembering the settings throughout restarts for all the named dialogs/windows you have.