Hi,

the decisive command for centering the text on screen is this one:

flags = CENTER_X|CENTER_Y|SHOW;

You need to have this inside your text object definition to make it work. "SHOW" will cause your text to be actually visible on screen (so if you switch SHOW back to off, it will disappear again). "CENTER_X" will center the contents of your text object (just as when you select a text and click "center" in Microsoft Word or write "div_align = center" in HTML or...). Finally, "CENTER_Y" does the same thing as CENTER_X, just in a vertical manner instead of a horizontal one.

I hope I could help you with that ^^

Greets,



Alan