Change Text on Button State


#1

Is there a way to change the text of a button gadget depending on whether it’s on or off?

Thanks,

Dave


#2

Yes, you can get pretty fancy, especially with our Image Indicator gadget. Check out: https://demo.groov.com/#43 (login: trial/opto22).

Also, if you want to take apart a sample (e.g. run it on your own groov Server trial on a local PC), you can download and play with this:

http://www.opto22.com/site/downloads/dl_drilldown.aspx?aid=4623

Have fun!

-Mary


#3

For anyone following this, but in a rush…

Have two images, one with the word ‘On’, the other with the word ‘Off’.
As the bit changes state, you make one or the other image visible.


#4

I like the simple approach. ;-}

Thanks!


#5

So I created the image but how do I change whether it’s visible or not? PAC display had that feature but Groov only lets me change the opacity.


#6

This video should help.

You can access all our workshop videos from http://workshops.opto22.com


#7

Thanks Ben. That was helpful. I found what I needed was an Image Indicator, which worked great.

Dave


#8

Very beautiful and practical HMI.
I hope that when a certain value is true, a button is visible, and this button is used to control another variable. No, this button is not visible and cannot be used. Can this function be realized?


#9

Yes it can work like that.
Check out the video and the image gadget.
Think about putting a transparent control gadget over the top.


#10

There seems to be some problem, when a transparent control is placed above a button, the button is visible, but it can’t be used. Is it wrong with me?


#11

Your Z-Order is wrong. Make sure the control is the top layer.


#12

Still don’t understand how to do it?:grinning:


#13

Please re-watch the video above. The control you are trying to make is explained at the 6:50 mark.