408-754-4176 | info@reachtech.com

by Reach Technology, a Novanta Company
Support > Frequently Asked Questions > How do I write centered text on the display?

How do I write centered text on the display?

The “SET TEXT ALIGNMENT” command can be used to control how the “TEXT DISPLAY” command places text on the screen. The following commands draw a rectangle, set the text alignment to centered horizontally and vertically, and draw a string centered in the box:

r 100 100 300 150

ta CC

t “Centered!” 200 125

Note: The horizontal alignment setting reverts to “L” after the text is written.