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

Author Topic: SFML2 events with Win32 callbacks  (Read 1860 times)

0 Members and 1 Guest are viewing this topic.

JohnGreek

  • Newbie
  • *
  • Posts: 43
    • View Profile
SFML2 events with Win32 callbacks
« 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.
« Last Edit: May 28, 2012, 04:43:23 am by JohnGreek »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: SFML2 events with Win32 callbacks
« Reply #1 on: May 28, 2012, 10:18:42 am »
You can handle Win32 events, but not draw Win32 controls on top of the SFML view.
Laurent Gomila - SFML developer

JohnGreek

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: SFML2 events with Win32 callbacks
« Reply #2 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.
« Last Edit: May 28, 2012, 12:19:07 pm by JohnGreek »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: SFML2 events with Win32 callbacks
« Reply #3 on: May 28, 2012, 04:34:49 pm »
Quote
Even when i'm integrating SFML on Win32 application??
Yes.
Laurent Gomila - SFML developer

JohnGreek

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: SFML2 events with Win32 callbacks
« Reply #4 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!
 :(

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: SFML2 events with Win32 callbacks
« Reply #5 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.
Laurent Gomila - SFML developer

 

anything