Disable horizontal scrolling at runtime

TeeGrid VCL / FMX for Embarcadero RAD Studio, Delphi, C++ Builder and Lazarus Free Pascal.
Post Reply
InfraTec
Newbie
Newbie
Posts: 18
Joined: Tue May 09, 2023 12:00 am

Disable horizontal scrolling at runtime

Post by InfraTec » Thu Jul 27, 2023 11:12 am

I have a TeeGrid with horizontal scrollbar only. It's necessary to disable this horizontal scrolling at runtime.
I tried TScrollingMode.None, TScrollDirection.Disabled and Scrolling.Active=False but with no success. Is there a way I can stop scrolling?

Yeray
Site Admin
Site Admin
Posts: 9617
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Disable horizontal scrolling at runtime

Post by Yeray » Mon Jul 31, 2023 10:03 am

Hello,

You can try hiding the horizontal scrollBar:

Code: Select all

  TeeGrid1.ScrollBars.Horizontal.Visible:=TScrollBarVisible.Hide;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

InfraTec
Newbie
Newbie
Posts: 18
Joined: Tue May 09, 2023 12:00 am

Re: Disable horizontal scrolling at runtime

Post by InfraTec » Mon Jul 31, 2023 11:52 am

Yes, this is possible workaround - but unesthetic.
Shouldn't at least one of the mentioned variants work?

Yeray
Site Admin
Site Admin
Posts: 9617
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Disable horizontal scrolling at runtime

Post by Yeray » Mon Jul 31, 2023 1:55 pm

Hello,

You are right. I've added it to the public tracker at #2624.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

David Berneda
Site Admin
Site Admin
Posts: 83
Joined: Wed Nov 12, 2003 5:00 am
Location: Girona, Catalonia
Contact:

Re: Disable horizontal scrolling at runtime

Post by David Berneda » Tue Nov 21, 2023 1:13 pm

Work in progress, added some comments to the related bug post:

https://www.steema.com/bugs/show_bug.cgi?id=2624

Post Reply