On Wed, 27 Jan 2010 15:03:09 -0600 Terry Brown <[email protected]> wrote:
> Can you give an example of a case where positions aren't available and > cursor.movePosition is needed? Not knowing the undo code I can't think of a > case, but that would be the not knowing part... Ha, I guess the example would still be interesting, but now I'm wondering if the problem is that there's no easy way to create a particular selection, I was, until just now, assuming cursor.setSelectionStart(pos) and cursor.setSelectionEnd(pos), but those functions seem to not exist. But I think you could create arbitrary selections from positions (if that helps) by moving to one end of selection with cursor.setPosition(pos_i, MoveMode = MoveAnchor), and then to the other end with cursor.setPosition(pos_j, MoveMode = KeepAnchor). So the question remains, out of ignorance, when do you not have positions available? Cheers -Terry -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
