"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

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, ev

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 prop

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 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 (accordi

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 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 of

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 arc

Which Monitor to Open LC In

2021-02-22 Thread Roger Guay via use-livecode
I have a MBP with an external monitor. Does anybody know how to force LC to open on the internal display and not the external? It suddenly switched on me and I can’t figure out why or how to control it. BTW, the external monitor is arranged to be above the MBP display. Thanks, Roger __

Re: Which Monitor to Open LC In

2021-02-22 Thread Paul Hibbert via use-livecode
Right-click (ctrl-click) on the LC icon in the dock and choose “Options” then select “Assign to Desktop on Display 1”, should do it. Paul > On 22Feb, 2021, at 7:47 PM, Roger Guay via use-livecode > wrote: > > I have a MBP with an external monitor. Does anybody know how to force LC to > open

Re: Which Monitor to Open LC In

2021-02-22 Thread Roger Guay via use-livecode
Hmmm, I don’t have that option!?? I’m using LC 9.6.1 in OS 11.2 What is your config? Thanks Paul! Roger > On Feb 22, 2021, at 8:48 PM, Paul Hibbert via use-livecode > wrote: > > Right-click (ctrl-click) on the LC icon in the dock and choose “Options” then > select “Assign to Desktop on Disp