Is it possible to identify when the cursor is within a group?

Devin Asay devin_asay at byu.edu
Thu Jul 15 17:38:35 EDT 2004


How about this, off the top of my head, not tested:

on mouseEnter -- in the card script
   get the name of target
   if it contains "group" and the number of target = number of groups 
then
     -- do stuff here
   end if
end mouseEnter

On Jul 15, 2004, at 1:40 PM, Howard Bornstein wrote:

> I create groups on the fly. I want to be able to tell when the cursor 
> is within one of them (so the user can move the whole group). It seems 
> that a group only knows the mouse is within it if the mouse is over 
> one of the *objects* in the group. If I turn on the group border, I'd 
> like to know that the mouse is within the groups border whether it's 
> over an object in the group or not.
>
> I know I can test to see if the mouse is within the rect of the group, 
> but this only works if I already know the group's name. What I'd like 
> to be able to do is move the cursor over any part of the group 
> (anywhere within the group's rectangle) and be able to identify the 
> name of the group.
>
> Does anyone know how to do this?
>
>
> Regards,
>
> Howard Bornstein
> -----------------------
> D E S I G N   E Q
> www.designeq.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
Devin Asay
Humanities Technology and Research Support Center
Brigham Young University



More information about the use-livecode mailing list