Full Justification in TppRichText
I'm using RB 7.03 on Delphi 7 and I want to set a portion of the text in a
TppRichEdit to full justification, but I'm having no luck. Can anyone help
me out? I'm using InfoPower RichEdit support. It's pretty straightforward
in a memo, but I need to use rich text for some additional formatting. I
tried to "fool" the component by slipping \qj into the text (as per the Rich
Text Specification), but it ignored the slash as a control character and the
\qj gets printed along with the rest of the text. I feel like there should
be a way to do this, I just can't figure it out.
TIA
Danny
TppRichEdit to full justification, but I'm having no luck. Can anyone help
me out? I'm using InfoPower RichEdit support. It's pretty straightforward
in a memo, but I need to use rich text for some additional formatting. I
tried to "fool" the component by slipping \qj into the text (as per the Rich
Text Specification), but it ignored the slash as a control character and the
\qj gets printed along with the rest of the text. I feel like there should
be a way to do this, I just can't figure it out.
TIA
Danny
This discussion has been closed.
Comments
---------------------------------
ReportBuilder includes a component that enables the TppRichText and
TppDBRichText controls in ReportBuilder to use the formatting capabilities
of InfoPower's TwwRichEdit when rendering RTF data. The ppWWRichEd.pas unit
located in the ..\RBuilder\InfoPower directory defines a TwwDBRichEdit
descendant and then registers the class with ReportBuilder. This enables the
TppRichText and TppDBRichText controls in ReportBuilder to use the
formatting capabilities of TwwDBRichEidt when rendering data.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
following line of code:
MyRichText.Paragraph.Alignment := taFullJustified;
gives the following error when I compile:
Incompatible types: 'TAlignment' and 'TppTextAlignment'
I expected that to work after adding the InfoPower RichEdit support.
MyRichText.TextAlignment := taFullJustified;
compiles, but the text still appears left justified, so i assume it has no
effect.
Use TwwRichEdit to edit the rtf data and then assign the rtf data to the
TppRichText component.
The RB InfoPower support enables RB to use the formatting capabilities of
InfoPower's TwwRichEdit when /rendering/ RTF data, however it does not
provide any facilities for /editing/ the rtf data.
For RB 11 we are adding some enhancements to the TppRichText, including
built-in support for
myRichText.Paragraph.TextAlignment := taFullJustified;
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Is there a target release date for RB 11?