PDA

View Full Version : centered text


Stefan_M
12-12-2003, 02:58 PM
Is there a way for automatic repositioning of label objects if the text lenght has changed in the builded project?


Stefan

Lorne
12-12-2003, 04:46 PM
You could try using a paragraph object instead of a label object...

Worm
12-12-2003, 07:35 PM
You could write a function to pad the text with spaces to have it be centered.

Desmond
12-15-2003, 09:36 AM
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 . . . :o)