Setting active top level window

Hi Jules,

I have an app with some child top-level windows. In certain circumstances, I want to programatically make one of those windows (which are actually instance of DocumentWindow, FWIW) the active top-level window.

However, I can’t spot a way to achieve this.

The obvious candidate is this private method… can’t spot anything else!

void TopLevelWindow::setWindowActive (const bool isNowActive) throw()

Hoping you can advise!

Pete

Does grabKeyboardFocus() do the job…?

Aha - nice one, Jules. Sorted! :slight_smile: