Page 1 of 1

Autosize for TRichViewEdit?

Posted: Wed Jul 21, 2010 11:20 am
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

Posted: Wed Jul 21, 2010 5:06 pm
by Sergey Tkachenko
Assign RichViewEdit.ClientHeight := RichViewEdit.DocumentHeight in RichViewEdit.OnChanged, and after any call of RichViewEdit.Format.