Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-09

Scrollbars in SynEdit

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mark Morgan Lloyd

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?

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Martin
to Mark Morgan Lloyd
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.

Reply by email

Mark Morgan Lloyd
to Martin
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]

Reply by email