Bugs item #1207143, was opened at 2005-05-23 16:58
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=102439&aid=1207143&group_id=2439

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Scintilla
Group: Bug
Status: Open
Resolution: None
Priority: 5
Submitted By: Federico Di Gregorio (fog)
Assigned to: Nobody/Anonymous (nobody)
Summary: SCI_SCROLLCARET does not work with word wrap

Initial Comment:
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,
nLastLine);
SendMessage(SCI_GOTOPOS, nLastPos);
SendMessage(SCI_SCROLLCARET);

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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=102439&aid=1207143&group_id=2439
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to