Trying to persist Window Size and position #1610
-
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 10 replies
-
If your window is There are 2 layouts Ideally you would want to pass off persistence to a serialization library like JSON or YAML. I looked into what happens when you pass |
Beta Was this translation helpful? Give feedback.
-
Am I right in thinking there's no way to control the Terminal Window size? I put in a Resized method and used Dim.Fill() to set Window after a resize and that worked but setting the terminal size in code doesn't seem possible. |
Beta Was this translation helpful? Give feedback.
-
When my application starts, before creating the main Window, it looks for the file with the previous values and if present reads those. It then creates the Window using the Width and Height using those. That worked fine except you get the situation as the image above shows. |
Beta Was this translation helpful? Give feedback.
-
Sorry, I wasn't clear- the Resize method is the event handler that is run when the Terminal is manually resized. In it I set Width and Height to Dim.Fill() and that puts the Border in the correct place. |
Beta Was this translation helpful? Give feedback.
-
It's currently about 100 lines long. and I'm just trying to put together a basic skeleton. The main things were the Load and Save of the main Window. But those don't work. Anyway I've uploaded it in a zip file. |
Beta Was this translation helpful? Give feedback.
It's currently about 100 lines long. and I'm just trying to put together a basic skeleton. The main things were the Load and Save of the main Window. But those don't work. Anyway I've uploaded it in a zip file.
Lib.zip