Alwaysontop


#1

If there are several windows with AlwaysOnTop set to true, which one shows up on top?

More specifically - I have a VST plugin (which is AlwaysOnTop), which occasionally displays a messagebox (on the desktop).

the messageBox is set to be alwaysOnTop, and I do a toFront() in the constructor.

nonetheless - it’s not on top. What am I missing here?


#2

Maybe the window isn’t actually on-screen at the point when you call toFront() ?


#3

I also call toFront() every time it paints though.

It works fine when not in a plugin - something about the plugin window seems to also end up bringing it to the front perhaps?


#4

oh yes, in a plugin all bets are off - the host is in control there.


#5

Aha - I thought that might be the case, thanks.