Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
How set window focus? SFML.Net
Print
Pages: [
1
]
Author
Topic: How set window focus? SFML.Net (Read 3107 times)
0 Members and 1 Guest are viewing this topic.
Tigre Pablito
Full Member
Posts: 226
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
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Re: How set window focus? SFML.Net
«
Reply #1 on:
October 31, 2017, 06:39:25 pm »
https://www.sfml-dev.org/documentation/2.4.2/classsf_1_1Window.php#a58cf7fa1775e8e7542032e3ecfa83b49
But I think it was added in SFML 2.4, so you may have to upgrade.
Logged
Laurent Gomila - SFML developer
Tigre Pablito
Full Member
Posts: 226
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
Logged
Laurent
Administrator
Hero Member
Posts: 32498
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.
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
How set window focus? SFML.Net