Re: Trapping for mouseDown on the desktop on a Mac

2013-10-14 Thread Phil Davis
So have I. On 10/14/13 3:17 PM, Paul Hibbert wrote: P.S. I've been called much worse names than Phil (With no disrespect to Phil).:-) -- Phil Davis ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, un

Re: Trapping for mouseDown on the desktop on a Mac

2013-10-14 Thread Paul Hibbert
Ray, You don't need any dummy controls, I just adapted this stack from a previous one where I found that it is slightly quicker to use a hidden control and make it visible, rather than create a new one, although the speed improvements were noted with image objects not field objects, I just foun

Re: Trapping for mouseDown on the desktop on a Mac

2013-10-14 Thread Ray
Thanks for the heads-up. Got me goofed uppa little as it's coming from Phil but signed as Paul. I'll make a note of that. On 10/14/2013 3:26 PM, Phil Davis wrote: "Phil" is Paul's nickname, I'm almost certain. ;-) Phil On 10/14/13 12:19 PM, Ray wrote: Phil, Many thanks for including this

Re: Trapping for mouseDown on the desktop on a Mac

2013-10-14 Thread Phil Davis
"Phil" is Paul's nickname, I'm almost certain. ;-) Phil On 10/14/13 12:19 PM, Ray wrote: Phil, Many thanks for including this stack! I'm in New York right now (out of town for me) but I'm anxious to get back home in a few days where I can experiment with this on my Mac. Interesting how yo

Re: Trapping for mouseDown on the desktop on a Mac

2013-10-14 Thread Ray
Phil, Many thanks for including this stack! I'm in New York right now (out of town for me) but I'm anxious to get back home in a few days where I can experiment with this on my Mac. Interesting how you've put the scripts in the card script but still need the field present to catch the messa

Re: Trapping for mouseDown on the desktop on a Mac

2013-10-13 Thread Paul Hibbert
Ken, I don't think you even need to go into a polling mode, as soon as user drags an item onto a stack it triggers a 'dragMove' message so trapping that should work on both platforms. Tried a few tests with a small stack and tackling the problem from a different angle seems to do the trick on

Re: Trapping for mouseDown on the desktop on a Mac

2013-10-13 Thread dunbarx
al Message- From: dunbarx To: use-livecode Sent: Sun, Oct 13, 2013 2:05 pm Subject: Re: Trapping for mouseDown on the desktop on a Mac Or another "polling" thing, if this helps at all: on mouseUp checkForMouseDown end mouseUp on checkForMouseDown if the mouse is down then a

Re: Trapping for mouseDown on the desktop on a Mac

2013-10-13 Thread dunbarx
hen you run this and click in the finder, LC butts in because of the dialog. But you can do something else less obtrusive. Craig Newman -Original Message- From: Ken Ray To: How to use LiveCode Sent: Sun, Oct 13, 2013 12:49 pm Subject: Re: Trapping for mouseDown on the desktop on a M

Re: Trapping for mouseDown on the desktop on a Mac

2013-10-13 Thread Ken Ray
How about going into a polling mode, checking the dragData["files"] every second or so... it should start out empty, but as soon as the user starts to drag a file from the desktop, it should have something in it. Just a thought, Ken Ray Sons of Thunder Software > On Oct 12, 2013, at 11:25 AM,

Re: Trapping for mouseDown on the desktop on a Mac

2013-10-12 Thread Ray
Phil - thanks for the suggestion but I just tried it and no-can-do. For some reason, and this is a Mac-only behavior, when I mouseDown on the desktop I can't see any messages at all which are sent to Livecode. The suspend message is sent if I mouseDown on another stack, but not on a file on th

Re: Trapping for mouseDown on the desktop on a Mac

2013-10-12 Thread Phil Davis
Have you tried using 'suspend' instead of 'mouseDown' and 'suspendStack'? Should work the same on both platforms (famous last words!). Phil On 10/12/13 6:31 AM, Ray wrote: On Windows the instant there is a 'mouseDown' on the desktop the current stack window goes inactive, thus triggering the

Trapping for mouseDown on the desktop on a Mac

2013-10-12 Thread Ray
On Windows the instant there is a 'mouseDown' on the desktop the current stack window goes inactive, thus triggering the suspendStack message. I use this to create a field which then accepts dragDrops. However, this is different on a Mac. The current stack window on a Mac waits until the mou