How to set the position of a DocumentWindow on the Desktop

This seems like it should be simple, but I can’t find anything on it.

I want to re-position and my DocumentWindow on the desktop, so that it doesn’t appear in the middle of the screen, but somewhere else. The usual Component methods don’t seem to work. I’ve looked in TopLevelWindow, ResizeableWindow and DocumentWindow but can’t see anything related to position. How can I do it?

setBounds works just fine!

have a look at what bool ResizableWindow::restoreWindowStateFromString (const String& s) does

1 Like

Hah, I could have sworn that I tried that and it didn’t work! Working fine now though. I knew it would be simple.

Happens to the best of us! glad you got it working :slight_smile: