interacting with invisible/hidden graphic

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Josh
Posts: 46
Joined: Sat Jan 12, 2008 6:42 am

interacting with invisible/hidden graphic

Post by Josh » Tue Jan 22, 2008 6:56 am

Hi all,

I have a visual array of rectangles with one being a red target rectangle. I want to make the shapes all disappear somehow (set visible to false, hide grc , or any other way that works). However, I want the user to be able to continue interacting with the shape. So, if he clicks the target, the program will react as though the target was present. Any ideas on how to do this?

Thanks,
Josh

Josh
Posts: 46
Joined: Sat Jan 12, 2008 6:42 am

It's good to be impatient

Post by Josh » Tue Jan 22, 2008 7:42 am

Hi all,

Remarkably I solved this problem too. For the record, what I did was I have a "cover" over the screen. When the user clicks where they think the target is, I have the mouseclick event trigger the following in grc "cover":

hide grc "cover"
click at the mouseloc

Works like a charm.

Josh

Post Reply