Re: "within graphic" question

2021-02-22 Thread Roger Guay via use-livecode
I’ve had this problem before and solved it with a work-around/hack using the intersect of 2 graphics with small alpha values. Roger > On Feb 22, 2021, at 2:02 PM, jbv via use-livecode > wrote: > > Le 2021-02-22 15:26, Tore Nilsen via use-livecode a écrit : >> Since the properties of the

Re: "within graphic" question

2021-02-22 Thread jbv via use-livecode
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

Re: "within graphic" question

2021-02-22 Thread Ken Ray via use-livecode
If you're willing to do something "hackish", you could do this: on mouseDown lock screen show grc "mygraphic" put within(grc "mygraphic",the clickloc) hide grc "mygraphic" unlock screen end mouseDown :D Ken > On Feb 22, 2021, at 1:49 PM, jbv via use-livecode > wrote: > > Hi list,

Re: "within graphic" question

2021-02-22 Thread Tore Nilsen via use-livecode
> 22. feb. 2021 kl. 21:26 skrev Tore Nilsen via use-livecode > : > > > >> 22. feb. 2021 kl. 21:14 skrev Richard Gaskin via use-livecode >> : >> >> jbv wrote: >>> I have a graphic made of a list of points. This graphic is opaque >>> and invisible, its filled property is set to true

Re: "within graphic" question

2021-02-22 Thread Tore Nilsen via use-livecode
> 22. feb. 2021 kl. 21:14 skrev Richard Gaskin via use-livecode > : > > jbv wrote: >> I have a graphic made of a list of points. This graphic is opaque >> and invisible, its filled property is set to true (according to >> the doc). >> In my card script I have something like : >> on mousedown

Re: "within graphic" question

2021-02-22 Thread Randy Hengst via use-livecode
Would it work in your case if you left the graphic visible and set the blendLevel to 99? be well, randy > On Feb 22, 2021, at 2:14 PM, Richard Gaskin via use-livecode > wrote: > > jbv wrote: >> I have a graphic made of a list of points. This graphic is opaque >> and invisible, its filled

Re: "within graphic" question

2021-02-22 Thread Richard Gaskin via use-livecode
jbv wrote: I have a graphic made of a list of points. This graphic is opaque and invisible, its filled property is set to true (according to the doc). In my card script I have something like : on mousedown put within(grc "mygraphic", the clickloc) end mousedown but it always returns false,

"within graphic" question

2021-02-22 Thread jbv via use-livecode
Hi list, I have a graphic made of a list of points. This graphic is opaque and invisible, its filled property is set to true (according to the doc). In my card script I have something like : on mousedown put within(grc "mygraphic", the clickloc) end mousedown but it always returns false, even