trichview.com

trichview.support




Autosize


Return to index


Author

Message

Jaepil Kim

Posted: 09/29/2003 5:11:54


Hi


I m trying to set the Height of RichViewEdit to accomodate the content without

any scroll bars.


I found this previous post. And tried the code.


> OnChange event, set

> RichView.Height := RichView.DocumentHeight + 4 {border} +

> RichView.VSmallStep;


It has the correct size but looks like it renders the document twice. When

a new line is put the document jumps. I think this happens because the document

is rendered before OnChange event.


In standard TRichEdit, there is an event called OnResizeRequest which sends

requested rectangle as parameter. It would be really nice if RichViewEdit

can support it.


Regards,





Powered by ABC Amber Outlook Express Converter