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

Author Topic: How set window focus? SFML.Net  (Read 2470 times)

0 Members and 1 Guest are viewing this topic.

Tigre Pablito

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • Email
How set window focus? SFML.Net
« on: October 31, 2017, 06:24:33 pm »
Hello

How can I focus my window from code? I have to click on it to make it work normally (capture events)

I call window.SetActive(true) after assigning event handlers and before the main loop starts but doesn't work

I'm using SFML.Net 2.2

Thanks

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: How set window focus? SFML.Net
« Reply #1 on: October 31, 2017, 06:39:25 pm »
Laurent Gomila - SFML developer

Tigre Pablito

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • Email
Re: How set window focus? SFML.Net
« Reply #2 on: October 31, 2017, 07:04:29 pm »
Is it available SFML.NET 2.4? I have just searched and only found SFML.NET 2.3 and it seems there is only the source code ... so which version should I use (for C#)? And where can I get it (the DLLs)?
Thanks

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: How set window focus? SFML.Net
« Reply #3 on: October 31, 2017, 08:20:16 pm »
You can safely use 2.4 (it's tagged on the repository) but you'll have to compile it yourself.
Laurent Gomila - SFML developer