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

01a68e65c05c8751d75dbf957ea4fa23?d=identicon&s=25 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
This topic is locked and can not be replied to.