trichview.com Forum Index trichview.com
TRichView support forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Autosize for TRichViewEdit?

 
Post new topic   Reply to topic    trichview.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
ThYpHoOn



Joined: 16 Jul 2010
Posts: 8
Location: Germany

PostPosted: Wed Jul 21, 2010 11:20 am    Post subject: Autosize for TRichViewEdit? Reply with quote

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
View user's profile Send private message
Sergey Tkachenko
Site Admin


Joined: 27 Aug 2005
Posts: 6599

PostPosted: Wed Jul 21, 2010 5:06 pm    Post subject: Reply with quote

Assign RichViewEdit.ClientHeight := RichViewEdit.DocumentHeight in RichViewEdit.OnChanged, and after any call of RichViewEdit.Format.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    trichview.com Forum Index -> Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group