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

Author Topic: Set Focus  (Read 2479 times)

0 Members and 1 Guest are viewing this topic.

lid6j86

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • Email
Set Focus
« on: October 13, 2014, 10:53:48 am »
I'm going crazy right now, is there a property or something which lets me set the window focus to ghe render window?  I have the console and the render window up, and i want it to default focus to the render window, not the console.  I could swear I had gotten it to work before but I don't remember well.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10815
    • View Profile
    • development blog
    • Email
Re: Set Focus
« Reply #1 on: October 13, 2014, 11:25:58 am »
This feature has been added to master a few days ago. In order to use it, you need to compile SFML directly from source, which you can get from GitHub.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: Set Focus
« Reply #2 on: October 13, 2014, 04:57:36 pm »
Not in .NET though... you'll need to wait until the C# port has been adapted, or perform the corresponding changes yourself.

If you're talking about C++, then choose another forum ;)
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

lid6j86

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • Email
Re: Set Focus
« Reply #3 on: October 18, 2014, 06:53:08 pm »
was definitely talking C#.  how would I handle it manually until it gets ported?  use the window handle and adjust per OS on how they handle focus?