Autosize for TRichViewEdit?

General TRichView support forum. Please post your questions here
Post Reply
ThYpHoOn
Posts: 21
Joined: Fri Jul 16, 2010 1:56 pm
Location: Germany

Autosize for TRichViewEdit?

Post by ThYpHoOn »

Hi,

is there a way to autosize the TRichViewEdit-Component to the size of the edited Text? (e.g. you have a TRichViewEdit-Component without borders and you want to show a rtf-formated text in it)


Greets ThYpHoOn
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Assign RichViewEdit.ClientHeight := RichViewEdit.DocumentHeight in RichViewEdit.OnChanged, and after any call of RichViewEdit.Format.
Post Reply