Neil Hodgson wrote:
... Another is to maintain a maximum seen pixel width in the line layout data and modify the scroll range when this changes at the end of painting or in periodic or idle processing. Approximate widths could be discovered by counting line widths in bytes and multiplying by an approximate per-byte byte width (making allowance for such things as tabs and multi-byte characters).
I essentially use this algorithm in RFtp's logging window, but actually check to see if the new line's char width is larger than previously seen each line - but then, my logging is already running in its own thread. :)
Like Simon, I also do not worry about shrinking the scrollbar nearly as much as having a reasonably-sized one for the longest lines. ;)
Robert Roessler [EMAIL PROTECTED] http://www.rftp.com _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
