How can i get the TRect of the whole content of the RichEdit?
How can i get the TRect of the whole content of the RichEdit?
i have a function to save the richEdit as image using the TRangeformat, but the problem is we are the one to define the rect where to be printed. how can i get the exact rect to print the whole content?开发者_如何学编程
thnax
There are lots of example on how to make windows paint a canvas with Delphi. Here is one that might help.
Painting a Rich Edit control onto a bitmap for preview
http://www.delphi-central.com/tutorials/Print_Preview.aspx
And some more: Measuring size full text of TRichEdit
精彩评论