Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [SOLVED] Put Window in foreground  (Read 2044 times)

0 Members and 2 Guests are viewing this topic.

GabrielS

  • Newbie
  • *
  • Posts: 25
    • View Profile
[SOLVED] Put Window in foreground
« on: June 12, 2013, 05:19:29 pm »
Hello,

I was wondering if there was a way to put a window on the foreground.
To be precise, let's imagine you have 2 different windows, window1 and window2. Both are visible and displayed. When you are on window1, I would like to set window2 on the foreground when i click on a button from window1 without having to re-create window2 (it works to recreate window2, but I don't want to have to re-load all elements from window2 which are already displayed), I just want to make window2 go on foreground.

If this is possible, please tell me how.

Thanks in advance,

Gabriel
« Last Edit: June 12, 2013, 06:01:55 pm by GabrielS »

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Put Window in foreground
« Reply #1 on: June 12, 2013, 05:41:27 pm »
Not with SFML. You have to use OS-specific functions.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

GabrielS

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Put Window in foreground
« Reply #2 on: June 12, 2013, 06:01:33 pm »
Ok, that's a shame =p.

Thanks for the fast answer!