Ignition V8 - Project wide styles

Hi.

Ignition V8.0

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?

Thanks.

1 Like

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.

1 Like

image
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 :slight_smile:

I don’t believe this is officially documented or recommended, but you can do the following:

  1. Create the binding on some normally bindable property

  2. Copy the binding you made
    image

  3. Paste the binding on the Font property
    image

  4. Remove the original placeholder binding
    image

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.

4 Likes

Thanks! This is a viable workaround! :slight_smile:
One may wonder why Inductive has omitted the “normal” binding approach for label.font…