Hi,
As you already said there is no auto expanding function for the Text Object. The only way to set the position of the this object is to use the following parameter: ADDGRAOBJHEIGTH, ADDGRAOBJWIDTH, ADDGRAOBJPOSX, ADDGRAOBJPOSY
This example centers the Text Object:
Call GRAPHOBJOPEN("TextObject1")
ADDGRAOBJPOSX= (100 - ADDGRAOBJWIDTH) / 2
ADDGRAOBJPOSY=15
Call GRAPHOBJCLOSE("TextObject1")
Greetings
Walter