SFML community forums

Bindings - other languages => DotNet => Topic started by: Lamonte on July 06, 2014, 08:04:18 pm

Title: Anyone know how to fix the window focus issue? (clicking on the window canvas)
Post by: Lamonte on July 06, 2014, 08:04:18 pm
When I click on the area using a standard render window (black part) the window doesn't focus until I click the title bar or the edge of the window.

I read they fixed this a long time ago, so either the dotnet bindings aren't updated or it was never fixed :/?
Title: Re: Anyone know how to fix the window focus issue? (clicking on the window canvas)
Post by: zsbzsb on July 06, 2014, 08:06:18 pm
Title: Re: Anyone know how to fix the window focus issue? (clicking on the window canvas)
Post by: Lamonte on July 07, 2014, 02:04:57 am
Thanks that worked, I guess .IsOpen isn't a method anymore and I need to use SFML.System now for Vector2f, etc...
Title: Re: Anyone know how to fix the window focus issue? (clicking on the window canvas)
Post by: zsbzsb on July 07, 2014, 02:59:46 am
Yep, its just part of finally getting SFML.NET up to par with the core C++ SFML.
Title: Re: Anyone know how to fix the window focus issue? (clicking on the window canvas)
Post by: Lamonte on July 07, 2014, 06:19:39 pm
Yep, its just part of finally getting SFML.NET up to par with the core C++ SFML.

One thing that's quite weird is changing isOpen() to a variable, because the C++ version is a method as well unless the C++ version is going to change?
Title: Re: Anyone know how to fix the window focus issue? (clicking on the window canvas)
Post by: Laurent on July 07, 2014, 08:02:06 pm
Quote
One thing that's quite weird is changing isOpen() to a variable, because the C++ version is a method as well unless the C++ version is going to change?
C++ doesn't know the concept of properties. Everything is implemented with functions in the core API.