[Lazarus] Column ruler above a synedit
Mark Morgan Lloyd
markMLl.lazarus at telemetry.co.uk
Tue Feb 10 23:18:52 CET 2015
Martin Frb wrote:
> You should be able to copy the entire class TSourceLazSynSurfaceManager
> = class(TLazSynSurfaceManager)
> (It is in the IDE, but check the svn logs / blame, if no one else but me
> changed it then consider it lgpl+except)
>
> TopLineCount sets how much space you get on top.
>
> TSourceLazSynSurfaceManager(FPaintArea).ExtraManager.DisplayView
>
> set a source for the text you want to paint. If you do NOT forward to
> the textbuffer, then it will not come via the highlighter, and be
> highlightfree. But you can add your own.
Is my understanding of what you're saying correct that there would be
dead space to the left of the extra top line stuff if line numbers were
displayed (which is what I want)?
I'll take a look at the logs presently to work out what went in when. My
older code, relying on stacked synedits, is good for the GTKv1 era.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the Lazarus
mailing list