SFML community forums

Help => Window => Topic started by: Comanderblack on June 19, 2020, 05:21:33 pm

Title: Create new window without focus
Post by: Comanderblack on June 19, 2020, 05:21:33 pm
Hi. I haven't found any topic aobut this, and I don't know if this is the rightr place to ask this. If not, I'm sorry.
To the topic: It's possible to create a new Window without it gaining focus?
Using SFML 2.5.1 and deloping for Win 10.
Title: Re: Create new window without focus
Post by: Hapax on June 19, 2020, 05:37:25 pm
May I ask why you need to open a window that doesn't require any mouse or keyboard input?

You could open a second for the stuff you want to use and the first would (probably) lose its focus.

Remember it's always up to the operating system which window has focus.
Title: Re: Create new window without focus
Post by: Comanderblack on June 19, 2020, 05:56:36 pm
Right now, I have a full operative application that works on console. So the plan is to show a little of additional information outside the command console, in order to make more easy to understand, but without changing the current workflow too much. I know that I can get the Console handler and after creating the new Window, call the SO and make it gain focus again, but if there is a way to avoid doing it, I want to know.
Thanks for the quickly answer.