Problem With TextAlignment Property
I've just upgraded to version 10.09. I used to set the justication in code
with .Alignment = taRightJustify. This compiled and ran fine in Delphi 6
prior to my upgrade. Now when I execute the report a get a run-time error
of Invalid Typecast.
I found out the .Allignment has now been replaced with .TextAllignment. I
added the unit ppPrnabl to my uses clause. I now get the error Undeclared
identifier: taRightJustified when I compile.
If fails at the line:
(TheForm.Components[i] as TppDBText).TextAlignment := taRightJustified;
I did a search of all of the RBuilder *.pas files. I could not find where
the variables are defined.
I'm running MS Vista.
Please help.
Thanks,
Al Willis
with .Alignment = taRightJustify. This compiled and ran fine in Delphi 6
prior to my upgrade. Now when I execute the report a get a run-time error
of Invalid Typecast.
I found out the .Allignment has now been replaced with .TextAllignment. I
added the unit ppPrnabl to my uses clause. I now get the error Undeclared
identifier: taRightJustified when I compile.
If fails at the line:
(TheForm.Components[i] as TppDBText).TextAlignment := taRightJustified;
I did a search of all of the RBuilder *.pas files. I could not find where
the variables are defined.
I'm running MS Vista.
Please help.
Thanks,
Al Willis
This discussion has been closed.
Comments
The TppTextAlignment type was added so full justification could be
supported. It is found in the ppTypes.pas file.
Adding ppTypes to your uses clause will fix the issue.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks. That worked.
Al