[wxruby-users] Enter key issue with RichTextCtrl
Alex Fenton
alex at pressure.to
Thu Nov 6 09:43:15 EST 2008
Chauk-Mean P wrote:
> 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 expected.
> 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.
>
I'm a bit surprised that it behaves like this by default on Windows. I
would have thought that the standard desirable behaviour for this kind
of text editing widget would be to always consume Enter strokes.
I'll check that it's not something introduced by the wrapping, and if
not, will do as you suggest.
> Also, do you have / intend to add a RichTextCtrl sample ?
>
I don't have one in a good enough state to be added, just a mishmash of
stuff I used to test the various features as I added them. It would be
very good to have a sample - I don't think it has to be as complex as
the wxWidgets one - but at the moment writing samples is for me less of
a priority than finishing the core lib. Contributions welcome.
cheers
alex
More information about the wxruby-users
mailing list