The app window opens maximized when I start NumRe. How do I tell it to remember the size and position of the window the next time it opens?
Getting the current window position can be done using the wxWindow::GetRect() function. Get also the information, whether the current window is actually maximized using wxTopLevelWindow::IsMaximized(). Setting the position will be done using wxWindow::SetSize(wxRect), but we have to check, whether the position is actually reachable (and reset, if not). Then we need to serialize the wxRect to the INI file as well as adding the option to the option dialog.
We also need to store the sash positions in the INI file and add the corresponding option.
Enabling moving all window elements will be tracked with [#766].
Feature (enabled in options) was tested manually with also disabling the second monitor (the window then realigns to the current visible screen). Our setup only allows for equal monitors with equal pixels in y direction, so there might be issues for other dimensions.
Anonymous
Thanks for the inquiry. That's not possible for the moment. We can think of a use case for specific window size (to not start maximized), but it might get you into trouble, if you'd fix the screen coordinates of a window. Especially, if you're working with a secondary screen that might not always be available. Can you give us more information and insights?
You can, however define the screen, where NumeRe opens, if you use the Windows menu or the taskbar on this specific sreen, but that might not be new to you.
I use a large monitor. Opening the app maximized every time and resizing the window so that it doesn't cover the entire desktop is somewhat annoying. I would also like to resize the console, tree pane on the left, history and other panes inside the application. The option to rearrange the pane to better fit the user's workflow and preference would be a big plus. Thank you!
Ok, we'll make an option to memorize the current screen position and size. That will hopefully be feasible and should be resolvable in case of error. Will be an experimental feature nevertheless.
Arranging and resizing is possible, but you're referring to saving that for the next startup, aren't you? Saving the positions of the splitters ("sashes") is implementable. Saving the order of tabbed windows and their current arrangement is a bit error-prone. Might come in a future release, but will not get the highest priority for now. Are you fine with that?
Thank you. I am happy to wait and help test if necessary.
Hi Bektash, dunno how many updates you get from this ticket. Therefore just a quick summary:
Last edit: Erik Hänel 2023-03-08
Thank you. Looking forward to the new release.
Diff:
Diff:
Related
Tickets: #766
Diff:
Related
Commit: [r1278]
Tickets: #766
Diff: