SFML community forums

Help => Window => Topic started by: JohnGreek on May 28, 2012, 03:03:26 am

Title: SFML2 events with Win32 callbacks
Post by: JohnGreek on May 28, 2012, 03:03:26 am
Is there a way to recieve SFML events while having callbacks for windows controls.
I tried it but it doesn't work..

Edit: Managed to get somehow working but the windows controls render on the back even when i put them in front order or don't render at all.
Title: Re: SFML2 events with Win32 callbacks
Post by: Laurent on May 28, 2012, 10:18:42 am
You can handle Win32 events, but not draw Win32 controls on top of the SFML view.
Title: Re: SFML2 events with Win32 callbacks
Post by: JohnGreek on May 28, 2012, 11:47:16 am
Even when i'm integrating SFML on Win32 application??
If that's the case i have to let the OpenGL rendering from SFML and implement it on a Win32 enviroment and leave only event handling on SFML.
Title: Re: SFML2 events with Win32 callbacks
Post by: Laurent on May 28, 2012, 04:34:49 pm
Quote
Even when i'm integrating SFML on Win32 application??
Yes.
Title: Re: SFML2 events with Win32 callbacks
Post by: JohnGreek on May 29, 2012, 03:06:12 am
I'm thinking of moving to Qt and integrate SFML on it. Qt's UI is the best in my opinion than any other library around(mainly open source). The problem is that i want to use SFML, and on top of SFML i use OpenGL but i need to add an external library to render ui controls on top of SFML as well. Win32 can't be integrated with controls, guichan(project dumped, cannot compile), Ultimate++ uses a stupid system TheIDE and there are no libraries.. building is buggy. A good one, Gwen i couldn't integrate it on SFML, it does have a build for the libraries, all compile well, but i get 'undefined references' all the time... I'm getting crazy!!
If you have any recommendation it would be appreciated!
 :(
Title: Re: SFML2 events with Win32 callbacks
Post by: Laurent on May 29, 2012, 08:05:28 am
Quote
A good one, Gwen i couldn't integrate it on SFML, it does have a build for the libraries, all compile well, but i get 'undefined references' all the time...
Don't give up so easily, I'm sure this problem can be solved ;)

You can also try SFGUI.