Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4

Thread: centered text

  1. #1
    Join Date
    Nov 2003
    Location
    Salzburg / Austria
    Posts
    312

    centered text

    Is there a way for automatic repositioning of label objects if the text lenght has changed in the builded project?


    Stefan
    Attached Files

  2. #2
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    You could try using a paragraph object instead of a label object...

  3. #3
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    You could write a function to pad the text with spaces to have it be centered.

  4. #4
    Join Date
    Jul 2003
    Posts
    712
    Hello,

    As Lorne said, you could use a paragraph object instead. This is the 'best' and certainly easiest solution (in my opinion).

    Alternatively, you could use Label.GetSize and Label.SetPos to re-position your object based on its current size. I've done that in a few projects.

    Though why i didn't just use a paragraph object . . . )

Posting Permissions

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