Hi,
Got an idea on which I would like to get some response, so I can see if it’s in developers interest to create a feature request.
In Servoy, you can show forms in dialogs. When you show a form in dialog, you can specify it’s position and size, or let the position and size be determined by Servoy, by specifying -1 for the x,y,height and width.
In the servoy.properties file, I see a lot of entries like
rect_dialog0_bounds=x,y,w,h
To me, this seems to be storage of position and size of FormInDialogs. I think the FID’s are named dialogX automatically by Servoy, since it’s not possible for a developer to specify the name of a FID (you can only specify the title).
What I would like is to be able to name a FID and then let Servoy automatically store the size and position, so if the user resizes and/or moves the FID, the last position and size are stored.
Then, if the same FID is opened a next time (within the same session, or in another session), the FID is opened in the same position and with the same size as the previous time.
Now, I know that sometimes, you want FID’s to always be in the location where you detaermine. So, if you specify a specific location and size when opening the FID, this overrules the stored settings
Also, sometimes, you want the FID to always be positioned by Servoy. So, let’s keep using -1 for that.
And that brings me to -2 for invoking this new logic of placing the FID at the same position with the same size as last time (if the FID has never been shown before, Servoy should determine the position)
This way you have more control over the behavior of your solution, without having to code logic to get this done.
Is this something that sounds handy? If so, I’ll create a feature request for it.
Paul