Reece Dunn:
> I would have thought that EnsureVisible( int line ) would have been
> implemented something like:
>
> void EnsureVisible( int line )
> {
> LineScroll( 0, LineFromPosition( GetCurrentPos()) - line );
> }
>
> or is EnsureVisible() doing something different?
EnsureVisible will unfold text to show the line. To perform
scrolling you want EnsureVisibleEnforcePolicy which scrolls as
required by the visibility policy.
Neil
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest