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

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs