i must get and set the width for the TWPRichText basing on the textwidth in wordwrap mode. Maybe the needed Width of Text is 100mm. For TRichEdit is to set only the ClinetWidth based on Screen Resolution.
How do i this for TWPRichText?
i want to set the textwidth. In TRichEdit it is the ClientWidth, with the effect that the controlwidth is automatic adjusted.
In TWPRichtText the ClientWidth is not the textwidth. At the left and right side is a margin of a few millimeters.
the width of the text is either the bounding box (WordRwap = true) or the page width. Use propertyHeader.PageWidth to change the page width and margins. Values are twips.
Julian
#4♥ 0
This category is archived. No new posts are possible.