Recent

Author Topic: scrollbars in TMemo  (Read 6235 times)

mangakissa

  • Hero Member
  • *****
  • Posts: 1131
scrollbars in TMemo
« on: February 27, 2014, 05:40:07 pm »
If I select Tmemo.scrollbars = ssboth / ssautoboth, I only get a vertical scrollbar.

Is this normal?

Lazarus 1.0.12 / FPC 2.6.2 windows Vista 32 bits
Lazarus 2.06 (64b) / FPC 3.0.4 / Windows 10
stucked on Delphi 10.3.1

zeljko

  • Hero Member
  • *****
  • Posts: 1594
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: scrollbars in TMemo
« Reply #1 on: February 27, 2014, 08:00:57 pm »
ssBoth = Both scrollbars MUST be visible
ssAutoBoth = only needed scrollbar is visible eg. if you have WordWrap = True I doubt that you'll see horizontal scrollbar ever in TMemo.

mangakissa

  • Hero Member
  • *****
  • Posts: 1131
Re: scrollbars in TMemo
« Reply #2 on: February 28, 2014, 05:03:46 pm »
I'm work in Delphi and Lazarus. If Delphi the component works if you want to, you think it should be also in Lazarus. But some components in Lazarus are more better / advanced.

WordWrap was the problem. Set to false gave me both scrollbars.

Thank's
Lazarus 2.06 (64b) / FPC 3.0.4 / Windows 10
stucked on Delphi 10.3.1

zeljko

  • Hero Member
  • *****
  • Posts: 1594
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: scrollbars in TMemo
« Reply #3 on: February 28, 2014, 07:21:53 pm »
I'm work in Delphi and Lazarus. If Delphi the component works if you want to, you think it should be also in Lazarus. But some components in Lazarus are more better / advanced.

WordWrap was the problem. Set to false gave me both scrollbars.

Fill an issue about it please. If it works in Delphi then it should work in lazarus too (in case you're talking about win32 widgetset).

mangakissa

  • Hero Member
  • *****
  • Posts: 1131
Re: scrollbars in TMemo
« Reply #4 on: March 01, 2014, 08:24:10 am »
I don't think it's an issue. Lazarus does it right, delphi doesn't.
Lazarus 2.06 (64b) / FPC 3.0.4 / Windows 10
stucked on Delphi 10.3.1

mangakissa

  • Hero Member
  • *****
  • Posts: 1131
Re: scrollbars in TMemo
« Reply #5 on: October 27, 2020, 02:01:22 pm »
I noticed that ssboth / ssautoboth connected together with property wordwrap. I didn't know that.
But why?

Lazarus 2.06 (64b) / FPC 3.0.4 / Windows 10
stucked on Delphi 10.3.1

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: scrollbars in TMemo
« Reply #6 on: October 27, 2020, 03:28:06 pm »
I noticed that ssboth / ssautoboth connected together with property wordwrap. I didn't know that.
But why?

For ssAutoBoth is quite logical but for ssBoth it must be widget-dependant behaviour. .With Linux here it doesn't happen (see attached image: both memos use ssBoth).
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

 

TinyPortal © 2005-2018