Multiple windows, always keeping one ontop

Started by
2 comments, last by frazchaudhry 10 years, 12 months ago

Hello, I am working with sfml and I have multiple windows open at a time. Is there anyway to keep one widow on top at all times, even when I am active in a different window? thanks for any help.

Advertisement

It seems that you can use sf::WindowListener to listen for LostFocus event and when this event is received, you can call sf::Window::SetActive.

I am using sfml 2.0 and WindowListener is 1.6, Also, the sf::Window::SetActive sets the OpenGL rendering target.

You can't do that with sfml. But have a look at this thread http://en.sfml-dev.org/forums/index.php?topic=6295.msg41656#msg41656 . It's possible to do that with the win32 Api assuming you're on windows.

This topic is closed to new replies.

Advertisement