PDA

View Full Version : AlignedOut and taCenter



Huehnerschaender
03-10-2004, 09:24 PM
High Lifepower,

I found a littel "bug".

When using AlignedOut whit alignment taCenter there is a little problem.
The routine itself runs well, but you redefined the name taCenter.
It is already defined in unit classes as type of TAlignment. So when using for example a TStringList, which needs unit classes in uses clause, you can't use taCenter anymore in AlignedOut, because the compiler is not able to decide between taCenter from TAlignment (classes) and taCenter from TTextAlign (AsphyreDef).
Renaming taCenter to another name (e.g. taMiddle) solves the problem.
Maybe you can change this in the next release.

Greetings,
Dirk

LP
04-10-2004, 02:19 AM
Hey! Thanks, going to change it... another solution would be to use "AsphyreDef.taCenter" instead which forces to use the one defined in AsphyreDef.pas :wink: