[wxruby-users] How to deselect the text
Alex Fenton
alex at pressure.to
Wed Nov 5 06:35:29 EST 2008
Кирилл Лиходедов wrote
> I'm using TextCtrl and initially set some text in it. And all the text
> is selected by default.
> How can I deselect it?
> By the way, TextCtrl#set_selection() doesn't work... What am I doing
> wrong?
Thanks for reporting this and providing a clear test case. I've tried it
out and it seems to be a bug, specific to Windows. I was a bit surprised
as I'm fairly sure this used to work.
If you're able, please could you file this on the bug tracker and attach
your example as a test case. This will be a MUSTFIX for 2.0.
By the way, if you're using RICH and RICH2 for formatting, you might see
if RichTextCtrl works better for you. TextCtrl + RICH2 has some
cross-platform quirks, although it will be better for accessibility I guess.
thanks
alex
More information about the wxruby-users
mailing list