Hi,
I am a newbie, so go easy on me;-)
I complied the same app on Windows, Linux and Mac using
wxWidgets 2.5.4 on all platforms.
I am trying to intercept the enter key event to perform a task in a wxTextCtrl.
When I use MultiLine wxTextCtrl and wxTE_PROCESS_ENTER style it works as I expect on GTK on Linux and MacOSX, but windows the enter event does not get captured.
I know there is an example in the docs how to create my own class based on wxTextCtrl and override OnChar() but I am more curious if this is a bug or why the MSW was done this way.
I used DialogBlocks to implement it but I had to pass wxTE_PROCESS_ENTER as a extra style since MULTI_LINE and wxTE_PROCESS_ENTER have been made mutually exclusive.
Does anyone know if this behaviour is a bug or an intended feature? Maybe I did something wrong?
Thanks,
Andy
MSW != (Mac||GTK): MultiLine wxTextCtrl wxTE_PROCESS_ENTER
I posted a bug report on SourceForge and attached a sample there:
Bug Report:
http://sourceforge.net/tracker/index.ph ... tid=109863
Attachment:
http://sourceforge.net/tracker/download ... id=1163532
Bug Report:
http://sourceforge.net/tracker/index.ph ... tid=109863
Attachment:
http://sourceforge.net/tracker/download ... id=1163532