After setting wrod wrapping to SC_WRAP_WORD and
inserting enough text to go past the end of the windows
I am trying to move the caret to the end of the text
and then scroll it into view:
int nLastLine = SendMessage(SCI_GETLINECOUNT) - 1;
int nLastPos = SendMessage(SCI_GETLINEENDPOSITION,
Theoretically SCI_SCROLLCARET is redundant because
SCI_GOTOPOS is supposed to scroll the caret into view,
but I added it just to be sure.
Anyway, the view is NOT scrolled and the caret remains
hidden. Caret position is right as can be verified by
scrolling down the window manually.
Note that this problem is also present (I suppose) in
pythonwin: just try "dir(sys)" enough time to fill the
window and experience the lower part of the text (and
the caret) going out of view.
Log in to post a comment.