Jump to content

Centering Text - Variable: ASCII String


Recommended Posts

I am displaying a variable string in the HMI (its the site name of where the PLC is located). The properties are set to Center Center but the string is always justifying to the left. Checked the string length and this changes based on the name stored. I've written some code to add spaces to try to center the name but because of character sizes its not very centered - doesn't look  right. Any ideas anyone?  

image.png.c5757e8410b1d987792cc4e2aca8a919.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.