• Advertisement
Sign in to follow this  

SDL and TranslateMessage

This topic is 4621 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I have a SDL application that shows some dialogs. I have some textedit controls. When I try to input text to this edi box no text is inserted. Checking the SDL sources I have noticed that TranslateMessage is not called so this should be the problem. I have added it to the message loops, compiled but I still have the same problem. I´m calling SDL_PollEvents to get the events, and it seems not to call any DIB_XXXXXX message function (the ones I edited), so my source modifications are useless. Does anybody know how can I fix this?. Thanksin advance, HexDump.

Share this post


Link to post
Share on other sites
Advertisement
you must include <SDL_syswm.h> and call SDL_EventState(SDL_SYSWMEVENT,SDL_ENABLE) before the window messages will be proccessed.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement