Hi Paul, Thank you for sharing. I think I will stick with 1 single line of script that changes the graphic color. But I still need to understand why graphics colors don't change when disabled.
Le 2021-01-13 22:29, Paul Hibbert via use-livecode a écrit :
I have just used setProp in a behaviour button that was assigned to several groups made up of two graphic controls to represent a toggle switch. By setting one custom property the whole appearance of the group can easily be changed. I predefined the colours for each state in more custom properties, I’m sure this could be adapted to suit your case. Rather than explain everything in detail here, I have uploaded a stripped down stack to dropbox which I’m sure you could easily modify the behaviour script to change the appearance of your graphics in a similar way. If you need any more explanation, just ask, but I’m sure you will get the idea. Dropbox Link; https://www.dropbox.com/s/misiog5bwathpgy/Toggle%20Switch.livecode?dl=0 Paul
_______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode