Using Lazarus 1.0, I notice that if a SynEdit has ssAutoBoth set it appears to have a permanent horizontal scrollbar as though the width is set to around 256 characters. Is this a bug, or a feature that I can disable?
Mailing lists / lazarus / 2013-09
Scrollbars in SynEdit
3 messages · 2 people ·
- MMark Morgan Lloyd 2
- MMartin 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
Mark Morgan Lloyd wrote 5 lines
Using Lazarus 1.0, I notice that if a SynEdit has ssAutoBoth set it
appears to have a permanent horizontal scrollbar as though the width
is set to around 256 characters. Is this a bug, or a feature that I
can disable?
its config
disable:
Options [eoScrollPastEOL]
or set
MaxLeftChar
So you need to trigger an update (change size, or change scrollbar setting, as changing the above does not update the visibility of the scrollbar immediately (that is a bug)
with eoScrollPastEOL, the editor assumes a minimom of MaxLeftChar to be scrollable. If there is a longer line, then the longer line will take over.
Martin wrote 22 lines
On 13/09/2013 20:44, Mark Morgan Lloyd wrote:
> Using Lazarus 1.0, I notice that if a SynEdit has ssAutoBoth set it
> appears to have a permanent horizontal scrollbar as though the width
> is set to around 256 characters. Is this a bug, or a feature that I
> can disable?
>
its config
disable:
Options [eoScrollPastEOL]
or set
MaxLeftChar
So you need to trigger an update (change size, or change scrollbar
setting, as changing the above does not update the visibility of the
scrollbar immediately (that is a bug)
with eoScrollPastEOL, the editor assumes a minimom of MaxLeftChar to be
scrollable. If there is a longer line, then the longer line will take over.
Thanks Martin, setting MaxLeftChar to 1 fixes it (text is a "greenbar" listing, so I don't anticipate significant width).
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
