Get Text Size |
Top Previous Next |
Returns the width and height that the specified text will occupy using the currently selected font. This escape sequence is useful for positioning text relative to other objects.
Example This positions text in the middle of the page CAPTION="Whatever we want to print"
INPUT "";PX,PY
PRINT CAPTION;CHR$(0); INPUT "";TX,TY
PRINT STR(INT((PX/2) - (TX/2)));",0";CHR$(0); PRINT CAPTION;
|