something wrong with my button logic
Posted: Thu Jan 20, 2011 2:10 am
I am using a graphic to allow users to click on different areas of the body to reference a location for clinical findings. I've created a transparent button over the parts of the body and I want to show or hide the label for that part of the body:
on mouseUp
if visible of field "rtarm" is "false" then
show field "rtram"
else
hide field "rtarm"
end if
end mouseUp
This is the simple script I use to show or hide the label when the user clicks on the transparent button. When I run it in the simulator it doesn't work for some reason. I'm sure it is simple logic that I'm not following.
Bert
on mouseUp
if visible of field "rtarm" is "false" then
show field "rtram"
else
hide field "rtarm"
end if
end mouseUp
This is the simple script I use to show or hide the label when the user clicks on the transparent button. When I run it in the simulator it doesn't work for some reason. I'm sure it is simple logic that I'm not following.
Bert