msstyleEditor icon indicating copy to clipboard operation
msstyleEditor copied to clipboard

Remember GUI layout positions and sizes as well as window size and position

Open avidichard opened this issue 1 year ago • 3 comments

When closing the app, it would be nice to have the option to let the app remember the size and position of the window on-screen OR at least the size (I know that many times center-screen can be used).

MOST of all though: When I change the display within the app about the GUI layout, I always put the property section BESIDE my class list and I also open up the render preview which I put above the image view on the left most part of the window. When I open up the the app again, all is back to Vanilla/Default and I need to re-setup my layout. It's a bit annoying.

I understand you may want to keep this as a single file only app with no special config files with it but let's say I could have a checkmark available in the ribbon area under "View"

[ ] - Remember GUI Layout Tooltip: Enabling this will create a config file in the folder of the executable to save sizes and positions of GUI elements.

PS: Config file or registry entry, but I think people prefer config files rather than extra info in their registry.

App should check if config file exists, if not, do nothing special, just open as usual. If the config file exists, load it and position elements of layout as per config file. Position and size of window would also be saved in the configs so when app is opened, it would use those to resize and position Main window also.

avidichard avatar Dec 01 '24 23:12 avidichard

I too think at some point i'll have to give up the single executable setup, so that I can support features like this. Not the first time this was requested :) For example in issue https://github.com/nptr/msstyleEditor/issues/117.

nptr avatar Dec 03 '24 20:12 nptr

I maybe have an option for this that would prevent the use of a file or registry edits, you could use command line parameters. One could simply set the positions of the elements by passing the parameters in a shortcut, this would keep your file as a single executable and also permit others to sort of "save" their layout positions.

Example: msstyleEditor.exe -pos-class left-full -pos-property center-full -pos-render right-top -pos-image right-bottom

avidichard avatar Dec 28 '24 20:12 avidichard

Its fine, I'll rather write config files than requiring weird workarounds :)

nptr avatar Jan 17 '25 15:01 nptr