Page 1 of 1

How to know if the RichView is showing a scrollbar

Posted: Thu Nov 10, 2022 12:27 am
by jgkoehn
Greetings,
Is there a way to test if the scrollbar is presently on? As in available and visible due to text.
I want to increase a richview.height by using richview.documentheight + scrollbar height.

Re: How to know if the RichView is showing a scrollbar

Posted: Thu Nov 10, 2022 9:14 am
by Sergey Tkachenko
The simplest way is to compare richview.Height and richview.ClientHeight.
Height = ClientHeight + border + horizontal scrollbar height.

Re: How to know if the RichView is showing a scrollbar

Posted: Thu Nov 10, 2022 6:35 pm
by jgkoehn
Excellent thank you