A very simple question, but I’ve not been able to find an answer for it. How would I go about making the window size to be maximized, not full screen, but just maximized, when the application starts?
I’ve already come across this:
loadPrcFileData("", "fullscreen 0") # Set to 1 for fullscreen
loadPrcFileData("", "win-size 800 600")
loadPrcFileData("", "win-origin 10 10")
loadPrcFileData("", "win-fixed-size 0")
But I’ve not seen anything mentioning how to set the window to “maximized” mode when the application starts. Any help will be appreciated, thanks.
This does something similar to what I wanted, with the exception that the client-side decorations vanish. I’d have to adjust the height of the window to make them visible again. Of the height of the window, how much is taken by client-side decorations? Is there a way to get this value, so that:
Alright, I suppose I will have to settle for this for now and use “sys.exit()” and “props.setMinimized(True)” to simulate exiting and minimizing the window from within the application, if there’s not much that can be done about the window decorations.
The reason I wanted a panda3d-solution as opposed to other solutions is because panda3d’s solution would end up supporting windows, ubuntu and macOs.
Is this hack cross-platform, or would it only work on windows? If it’s only compatible with windows, what can be done to make it cross-platform, if anything?