In Vision, is there a way to control the style of objects from a single tag? Other SCADA packages have a project wide set of styles. The developer can then decide if a screen object shall be controlled by the global styles.
I have played with style customisers but I have not been successful. What I want to do is have a project scoped tag that will define the font and size. The style of each screen label will then be bound to the project tag.
Can anyone give me some pointers on how to get this to work?
There is no such mechanism in Vision. The closest you could get would be to hold the font description in a string client tag, and bind all labels’ font property to that string (via the toFont() expression function).
Understood and thank you. This “mechanism” is on my wish list for new features in ignition.
I’m running v8.1.4
How are you able to “…bind all labels’ font property…” ?
It would help me implement and manage some global style functionality
I don’t believe this is officially documented or recommended, but you can do the following:
Create the binding on some normally bindable property
Copy the binding you made
Paste the binding on the Font property
Remove the original placeholder binding
You won’t be able to edit it without going through the same process, but it’s manageable. I’ve used it in the past for variable font size.
Thanks! This is a viable workaround!
One may wonder why Inductive has omitted the “normal” binding approach for label.font…