App pause while dragging window

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

croivo
Posts: 111
Joined: Wed Feb 26, 2014 11:02 pm

Re: App pause while dragging window

Post by croivo » Sat Apr 18, 2015 7:09 pm

I'm on Windows...
Here is counter script: http://forums.livecode.com/viewtopic.php?f=7&t=24014

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7403
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: App pause while dragging window

Post by jacque » Sat Apr 18, 2015 7:29 pm

There are several versions there, but try this simple test in a button on a new stack:

Code: Select all

on mouseUp
  doTimer
end mouseUp

on doTimer
  if the shiftkey is down then exit doTimer
  put the long time into fld 1
  send "doTimer" to me in 500 milliseconds
end doTimer
To stop the timer, just hold down the shift key for a moment.

This works fine on my Mac. If it fails for you on Windows then it's an OS restriction and there isn't much you can do about it. If the user drags the stack you can use the moveStack message, but other than that it is out of your control.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply