Xojo Window State Manager

Writing in to request a new feature. Really wish Xojo could add a window state manager or a way to remember Xojo window size and position on launch. We recently added a window state manager to our app and it was ~300 lines of code. It seems it would be quite easy to add. As someone who spends a lot of time arranging the perfect development environment, its frustrating to have to resize and move the Xojo IDE every time I launch it. Simply save the main windows size and position on close and restore it on launch.

The IDE window opens in the last position you saved. This information is stored inside the binary and xml projects and in a .{project}.xojo_uistate file for text projects.

One thing I do to ensure my workspace is exactly as I desire it is set my uistate file with FileFreeze. If you use the macOS Finder “Lock” feature on the uistate file Xojo will crash when it tries to save. FileFreeze works around this by retaining and then restoring the file after Xojo does its write.

  1. Setup your workspace the way you wish it to open
  2. Make a minor change (single letter, then delete will do)
  3. Save (causes the uistate to get written)
  4. “Freeze” uistate with FileFreeze

After that, no matter what state the IDE writes, when you open the project the uistate will be the one you had set up.

2 Likes

This is GLORIOUS! Not sure how our whole team missed this :rofl: We all joke about it from time to time. Sometimes we would get it to work and it only confused us more lol. thanks so much for this!