Setting active top level window


#1

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


#2

Does grabKeyboardFocus() do the job…?


#3

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


#4