2008/11/6 Alex F. firstname.lastname@example.org:
Thanks for reporting this. I tried it out on OS X with my little RichText
sample, where the widget is created with the default style and has no
special event handling. The Enter key works as I’d expect - i.e. inserts a
I forgot to mention that I’m using Windows XP.
Do you perhaps have an event handler defined that you need to call skip on
the event so that it’s passed for normal processing?
I don’t have any event handler on the RichTextCtrl.
I saw a workaround for wxPython with the style WANTS_CHARS but there
is no such constant in wxRuby.
Are you sure? It definitely seems to be available as Wx::WANTS_CHARS, with
the value 262144.
Oups ! I wrote the constant correctly in this message but in my code I
wrote Wx::ACCEPTS_CHARS !!
Now, with a style set to Wx::WANTS_CHARS, RichTextCtrl works as
So the workaround is actually applicable.
This may be defined as the default style at the the wxRuby level if
this does not harm on OSX and Linux.
Also, do you have / intend to add a RichTextCtrl sample ?