我看到Scintilla在文本更改和其他操作上触发事件,但似乎它不会触发插入符号移动的事件。有没有办法从Scintilla获取这些信息?
答案 0 :(得分:3)
I assume you mean caret movements (the cursor only relates to mouse movements). More generally, you want to be notified of selection changes, since they must always imply caret changes (and vice-versa). In addition, you will need to consider content changes, since they could also indirectly affect the caret position and/or selection (e.g. cut, paste, delete, etc).
Scintilla provides information about all such changes via the SCN_UPDATEUI notification.