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

Author Topic: Create new window without focus  (Read 90 times)

0 Members and 1 Guest are viewing this topic.

Comanderblack

  • Newbie
  • *
  • Posts: 2
    • View Profile
Create new window without focus
« 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.

Hapax

  • Hero Member
  • *****
  • Posts: 3001
  • My number of posts is shown in hexadecimal.
    • View Profile
Re: Create new window without focus
« Reply #1 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.
Selba Ward - SFML drawables
Kairos - Timing Library
Rectangular Boundary Collision - Rectangular SAT Collision

@Hapaxiation - Hapaxia on Twitter

Comanderblack

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Create new window without focus
« Reply #2 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.