Page 1 of 1

interacting with invisible/hidden graphic

Posted: Tue Jan 22, 2008 6:56 am
by Josh
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

It's good to be impatient

Posted: Tue Jan 22, 2008 7:42 am
by Josh
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