"within graphic" question

Roger Guay irog at mac.com
Mon Feb 22 17:51:55 EST 2021

 I’ve had this problem before and solved it with a work-around/hack using the intersect of 2 graphics with small alpha values. 


> On Feb 22, 2021, at 2:02 PM, jbv via use-livecode <use-livecode at lists.runrev.com> wrote:
> 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...
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

More information about the use-livecode mailing list