| View previous topic :: View next topic |
| Author |
Message |
ThYpHoOn
Joined: 16 Jul 2010 Posts: 8 Location: Germany
|
Posted: Wed Jul 21, 2010 11:20 am Post subject: Autosize for TRichViewEdit? |
|
|
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 |
|
| Back to top |
|
 |
Sergey Tkachenko Site Admin
Joined: 27 Aug 2005 Posts: 6599
|
Posted: Wed Jul 21, 2010 5:06 pm Post subject: |
|
|
| Assign RichViewEdit.ClientHeight := RichViewEdit.DocumentHeight in RichViewEdit.OnChanged, and after any call of RichViewEdit.Format. |
|
| Back to top |
|
 |
|