Forum: wxRuby wxStyledTextCtrl: how to set caret at begining of a selection?

Posted by Zhimin Zhan (zzhan)
on 2011-03-16 00:06
Hi there,

I was trying to select text backwards in a StyledTextCtrl, i.e, want the
caret to be in the front, not at the end of selection, however
unsucessful.

My code like this:
  set_selection_end(11)
  set_selection_start(5)

Any suggestions? thanks in advance.

Zhimin
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.