Results 1 to 2 of 2

Thread: AlignedOut and taCenter

  1. #1

    AlignedOut and taCenter

    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
    <a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&amp;utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>

  2. #2

    AlignedOut and taCenter

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •