Jump to content

Image of the Day

Working on #steam achievements!
#screenshotsaturday #indiegame #pixelart #NadiaWasHere #RPG #indiedev https://t.co/IcDuJSWsGK
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net's newsletters to receive the latest updates and exclusive content.


Sign up now

Multiple windows, always keeping one ontop

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 Crusable   Members   

594
Like
0Likes
Like

Posted 05 May 2013 - 03:22 PM

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.


Edited by Crusable, 05 May 2013 - 03:23 PM.


#2 ppodsiadly   Members   

338
Like
0Likes
Like

Posted 05 May 2013 - 04:36 PM

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.



#3 Crusable   Members   

594
Like
0Likes
Like

Posted 06 May 2013 - 06:18 PM

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



#4 frazchaudhry   Members   

1220
Like
0Likes
Like

Posted 07 May 2013 - 12:46 AM

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.






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.