Page 1 of 1

Disable horizontal scrolling at runtime

Posted: Thu Jul 27, 2023 11:12 am
by 18695778
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?

Re: Disable horizontal scrolling at runtime

Posted: Mon Jul 31, 2023 10:03 am
by yeray
Hello,

You can try hiding the horizontal scrollBar:

Code: Select all

  TeeGrid1.ScrollBars.Horizontal.Visible:=TScrollBarVisible.Hide;

Re: Disable horizontal scrolling at runtime

Posted: Mon Jul 31, 2023 11:52 am
by 18695778
Yes, this is possible workaround - but unesthetic.
Shouldn't at least one of the mentioned variants work?

Re: Disable horizontal scrolling at runtime

Posted: Mon Jul 31, 2023 1:55 pm
by yeray
Hello,

You are right. I've added it to the public tracker at #2624.

Re: Disable horizontal scrolling at runtime

Posted: Tue Nov 21, 2023 1:13 pm
by David
Work in progress, added some comments to the related bug post:

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