Paul Augood Posted April 19, 2023 Report Share Posted April 19, 2023 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? Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted April 19, 2023 MVP 2023 Report Share Posted April 19, 2023 This is a problem with no good answer. I've struggled with this since the beginning of my time working with VisiLogic. 1 Link to comment Share on other sites More sharing options...
Fernando Castro Posted April 19, 2023 Report Share Posted April 19, 2023 6 hours ago, Flex727 said: This is a problem with no good answer. I've struggled with this since the beginning of my time working with VisiLogic. Same here, I tried to do a scrolling text once, and I noticed that it looked weird because of the variable character sizes. Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted April 20, 2023 MVP 2023 Report Share Posted April 20, 2023 This is a Visilogic thing and the odds are small that it will be addressed. You've already tripped upon the work-around by adding leading spaces with code. Try adding the Courier or another monospaced font for just that field. Joe T. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now