Unfortunately, the TTextAttributes properties are public so the Delphi RTTI will not pick them up for RAP. This leaves two options to get this working. First... and easiest would be to create a RAP passthru function that assigned the style property of the SelAttributes object. For an example of creating a passthru function, see the ReportBuilder Developer's Guide. Second would be to create a TTextAttribute RTTI class and register it with RAP. If you take a look at most of the classes in ReportBuilder, you will see that almost every one has a corresponding RTTI class to enable certain public methods and properties in RAP. You will need to something similar to this.
Comments
Unfortunately, the TTextAttributes properties are public so the Delphi RTTI
will not pick them up for RAP. This leaves two options to get this working.
First... and easiest would be to create a RAP passthru function that
assigned the style property of the SelAttributes object. For an example of
creating a passthru function, see the ReportBuilder Developer's Guide.
Second would be to create a TTextAttribute RTTI class and register it with
RAP. If you take a look at most of the classes in ReportBuilder, you will
see that almost every one has a corresponding RTTI class to enable certain
public methods and properties in RAP. You will need to something similar to
this.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com