Centering Text

BlitzPlus Forums/BlitzPlus Beginners Area/Centering Text

Answering questions with questions...


MyText$ = "Try This On For Size"
TW = 14
CreateLabel( MyText$,x-((Len(MyText$)/2)*TW),y,Len(MyText$)*TW,20,mywin,mystyle)

This might help.. the 14 is a fudgefactor since I havn't tried this code out.. In theory it should work.