开发者

How can i get the TRect of the whole content of the RichEdit?

开发者 https://www.devze.com 2023-03-14 17:11 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消