Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Setting Text Alignment of a Label

edited February 2005 in General
Hi,
Newbe question.

I have a label for which I want to set the taxt alignment at run time
depending on which object calls the Report. Something like ;

pplabel1.textalignment:=tacentered;

This obviously does not work. The compiler retiurns an error message
'tacentered is undefined'.

Help appreciated.

Mike

Comments

  • edited February 2005
    Mike Hickman wrote:



    Mike:

    Do a search on tacentered in the source directory of RBuilder. I'd
    guess it's ppTypes without looking myself.



    Craig
    Delphi Source Code for Accounting Systems
    www.ledgeraccounting.com
  • edited February 2005
    Mike:

    Add ppTypes to the uses clause at the top of the unit you have
    tacentered being used.

    Negected to mention that.

    Craig

    --
    Delphi Source Code for Accounting Systems
    www.ledgeraccounting.com
  • edited February 2005
    Thanks Craig,
    Thats what I was looking for.

    Mike
This discussion has been closed.