Is there a way to get an "exitGroup" behavior when someone clicks a non-group field

Ken Corey ken at kencorey.com
Tue Jun 26 15:38:34 EDT 2012


Okay, here's a brute force approach for what I think you're asking 
about.  Put this in the card script.

You will need to deal with each special group you have like this.

local ingroup

on handleEnterGroup
    -- handle entering the group
    log "handleEnter"
end handleEnterGroup

on handleExitGroup
    -- handle exiting the group
    log "handleExit"
end handleExitGroup

on mousemove x,y
    if x,y is within the rect of grp "test" then
       if ingroup is false then
          put true into ingroup
          handleEnterGroup
       end if
    else
       if ingroup is true then
         put false into ingroup
         handleExitGroup
       end if
    end if
end mousemove

That take care of what you want to do?

-Ken




More information about the use-livecode mailing list