General Category > Tips & Tricks

Glass Buttons

<< < (5/5)

Phrog30:
If you download "GlassButtonHMIv399.vb" from post #1 it already has that in there.  It will have one error, I believe you need to change CommComponent, to ComComponent.  I haven't tested this, so it may not work.  But it does have the PLC properties there.

bachphi:
It's been a while to revisit Godra's gem. Godra, are you still around?
Unless I am missing something, but I wanted to use it as a toggle pushbutton (Maintained PB)  and switching the button's text between Enabled/Disabled. I don't want to use PLCAddressText to select the text.  so I added the TextAlternate.

Attached is the one that included TextAlternate feature.

Also included is the dll file. Credit to Lukasz Swiatkowski.



--- Code: ---FTV Maintained PB BACKCOLOR CAPTION TEXT PLC TAG CONNECTION
                STATE0 RED DISABLED HMI_ENABLED_I
                STATE1 GREEN ENABLED



GLASSBUTTON      OUTPUT TYPE TOGGLE
               BACK COLOR RED
               HILIGHT COLOR GREEN
               TEXT         DISABLED
               TEXT ALTERNATE ENABLED
               PLCAddressClick HMI_ENABLED_I
               PLCAddressHilight HMI_ENABLED_I
               PLCAddressSelectTextAlternate HMI_ENABLED_I


--- End code ---
            
            
            

Navigation

[0] Message Index

[*] Previous page

Go to full version