Changing Font Size via Scripting in Ignition SCADA

Sham

Member
Join Date
Sep 2019
Location
Australia
Posts
152
Hi all,

I want to change the font size of text in a template(there will be a button in the template), essentially by binding it to a custom property (Boolean type). Where can I script it? and how?

So in short, its changing the font size of text in a button, via scripting, based on value of the custom property.

Thanks
 
Hi all,

I want to change the font size of text in a template(there will be a button in the template), essentially by binding it to a custom property (Boolean type). Where can I script it? and how?

So in short, its changing the font size of text in a button, via scripting, based on value of the custom property.

Thanks

Font isn't bindable, maybe possible via script. Why would you want, or need to change the font??
 
Font isn't bindable, maybe possible via script. Why would you want, or need to change the font??

Yep, trying to write a script.

Font=event.source.font
if (1==1):
Font=(Dialog,Bold,15)
else:
event.source.font=12

Just missing some syntax. Need variable font for some different text messages of different lengths that need to be displayed on HMI.
 
I can't help you, but have you tried the ignition forum? That's pretty helpful as the pros and developers check there often.

Also, if you haven't tried calling their tech support- it's free if you're an integrator.
 
This task would be much easier using the component's style customizer. Select the custom property and the driving property, and select what style properties you would like to change.
 

Similar Topics

Does anybody know if it is possible to change default (screen) fonts used by GX Developer? I'm mostly interested in using local codepage. I've...
Replies
3
Views
6,338
Hi to all. We need to change a bad powerFlex 525 to a new one. How do you save the configuration to install in the new one? Thank you all for...
Replies
5
Views
231
Hi all, I am having an issue where some of my HMI push Buttons and Indicators go in to error when I navigate to a new screen. I am using a...
Replies
16
Views
460
We have a new machine that uses an armor block to transfer input signals for conveyor position that continuously alarms out on no position change...
Replies
0
Views
87
Hello everyone, I am trying to change the IP address of the Omron PLC (NJ30-1200) and HMI (NB7W-TW01B) to fetch the network on our network...
Replies
7
Views
286
Back
Top Bottom