Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
set the Hilite of the Target to not the Hilite of the Target
if the Hilite of the Target = true
then
set the visible of img "image.png" to true
else
set the visible of img "image.png" to false
end if
and i have "hide img "image.png" on the card script, so that the image is first not visible.
it works finde but I have this little problem. On the first click nothing happens but after the second click every click toggles between hiding and showing the image. I would like the first click directly to show the image. Can someone help? Thanks
Well, that is the message sent to widget "Switch Button", and also to these widgets:
Navigation bar
Treeview
Segmented Control
I see this in the dictionary of 9.5.1, did not try 9.6 yet.
Create a "Switch button", open its script editor and you will see it on the left side
as the only entry in the build-in handler list.
Klaus wrote: Sun May 31, 2020 11:15 pm
Well, that is the message sent to widget "Switch Button", and also to these widgets:
Navigation bar
Treeview
Segmented Control
I see this in the dictionary of 9.5.1, did not try 9.6 yet.
Create a "Switch button", open its script editor and you will see it on the left side
as the only entry in the build-in handler list.
Thanks, Klaus. I had my Dict open to the "LiveCode Script" default; like Craig, I had thought the question here was about a button.
Richard Gaskin LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
OK, but only a RADIOBUTTON or a CHECKBOX has a (permanent) hilite property.
So what do you mean with -> ...the hilite of the target?
Or did you uncheck the "autohilite" property of your (normal) button?