WPCubed Product Support

ControlSize in WordWrap mode

Hi,

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?

Ciao Andreas

#1 ♥ 0
4.6k Views 2 users read 1 min
support

Hi,

Since the width of the TRichEdit changes the width of the text in WordWrap mode I do not unerstand the question.

Maybe You need:

wp.WordWrap := true;
wp.Width := Round( 10 2.54 SCreen.PixelsPerInch )

Julian

#2 ♥ 0

Hi,

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.

Ciao Andreas

#3 ♥ 0
support

Hi,

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.