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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...