Hide group on click

Keith Clarke keith.clarke at clarkeandclarke.co.uk
Fri May 6 07:13:53 EDT 2011


Hi folks,
I have a help 'draw' group that toggles open/closed (well, visible true/false) by mouseUp on a nearby help icon. However, I'd also like to have the drawer set to invisible if clicked. So, what's wrong with this script - placed on the group?

on mouseDown
   set the visibility of me to (not the visible of me)
end mouseDown

BTW The group is just a graphic background with a single field - and the field has lockText ON, autoHilite OFF and traversalOn OFF. 

Thanks,
Keith.. 


More information about the use-livecode mailing list