
Announcements
Hello all,
Is there a way that when an icon is pressed it changes its 'image'?
I'm trying to have a lock icon that when pressed it becomes an unlocked icon and vice versa.
Thanks in advance!
Add an Icon to your screen. Set the OnSelect to the following
Set(varlocked, Not(varlocked))
set the Icon property to the following.
If(varlocked,Icon.Lock,Icon.Unlock)
The OnSelect will toggle between the two states whenever the icon is clicked and the Icon property will show the Locked or unlocked icon based on the state.