"within graphic" question

jbv at souslelogo.com jbv at souslelogo.com
Mon Feb 22 17:02:50 EST 2021


Le 2021-02-22 15:26, Tore Nilsen via use-livecode a écrit :
> 
> Since the properties of the arc is available even if it is invisible,
> this will work though:
> 
> on mouseDown
> 
> put isWithin("myGraphic",the clickLoc)
> 
> end mouseDown
> 
> 
> function isWithin pGraphic pClickLoc
> 
> if pClickLoc is within the rect of grc pGraphic then
> 
> return true
> 
> else
> 
> return false
> 
> end if
> 
> end isWithin

Thank you, but this won't work for I need to test the
exact shape of the graphics, not its bounding box...




More information about the use-livecode mailing list