Help with TppRichText needed
Hi,
In stead of using the Rich text Editor manually, how do I programmatically
insert fields into a TppRichText component ?
E.g. Something like this:
if IBDataSet.FieldValues['Comments'] <> '' then
ppRichText1.RichText := ppRichText1.RichText + ' ; ' + '';
Regards,
Nols Smit
In stead of using the Rich text Editor manually, how do I programmatically
insert fields into a TppRichText component ?
E.g. Something like this:
if IBDataSet.FieldValues['Comments'] <> '' then
ppRichText1.RichText := ppRichText1.RichText + ' ; ' + '';
Regards,
Nols Smit
This discussion has been closed.
Comments
The TppRichText component works the same way as the built-in Delphi
TRichEdit wrapper component. At run-time you can programmatically edit and
manipulate the formatted text by using the Paragraph, SelAttributes,
SelStart, SelLength, and SelText properties and the ClearSelection,
FindText, and SelectAll methods. These are the same properties and methods
associated with Delphi's TRichEdit control. See the Delphi help on
TRichEdit for more information. Also check out Demo 29 (dm0029.pas) in the
RBuilder/Demos/Reports/... directory.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com