Alarm Status Table: Change the Ack-button font(size)

It is possible, although not very human-readable, to drill from the Ignition component reference down to the underlying Swing button and change the font. Keep in mind that there’s no guarantee this will work between versions - any changes made to the underlying objects will break low-level scripting like this.

from java.awt import Font
largeFont = Font("Dialog", Font.BOLD, 24)
table = event.source.parent.getComponent('Alarm Status Table')
table.getComponent(0).getComponent(1).getComponent(0).getComponent(0).setFont(largeFont)

4 Likes