Jump to content

  • Log In with Google      Sign In   
  • Create Account


Multiple windows, always keeping one ontop


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   -  Reputation: 592

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.

"C spilled his beer all over C++'s shirt. Outraged, C++ shouted, "Good god, man! Have you no class?"

"Your mother is so fat that the recursive function that was used to calculate her mass created a stack overflow"

 

 


Sponsor:

#2 ppodsiadly   Members   -  Reputation: 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   -  Reputation: 592

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. 


"C spilled his beer all over C++'s shirt. Outraged, C++ shouted, "Good god, man! Have you no class?"

"Your mother is so fat that the recursive function that was used to calculate her mass created a stack overflow"

 

 


#4 frazchaudhry   Members   -  Reputation: 1140

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.



PARTNERS