How to know if the RichView is showing a scrollbar

General TRichView support forum. Please post your questions here
Post Reply
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

How to know if the RichView is showing a scrollbar

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17564
Joined: Sat Aug 27, 2005 10:28 am
Contact:

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

Post by Sergey Tkachenko »

The simplest way is to compare richview.Height and richview.ClientHeight.
Height = ClientHeight + border + horizontal scrollbar height.
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

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

Post by jgkoehn »

Excellent thank you
Post Reply