Detect window move

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

Post Reply
dpatterson
Posts: 24
Joined: Wed Jan 18, 2017 5:38 pm

Detect window move

Post by dpatterson » Wed Feb 01, 2017 5:51 pm

Okay. This must be really simple and just haven't done the correct search.

How do I detect that a window/stack has been/is moving?

TIA
Dave

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Detect window move

Post by jmburnod » Wed Feb 01, 2017 6:07 pm

Hi Dave,

You can use "movestack" to know if stack is moving
For has been moving, just put "false" into a variable on openstack and set this variable to true when the stack is moving.
Best regards
Jean-Marc
https://alternatic.ch

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9662
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Detect window move

Post by dunbarx » Thu Feb 02, 2017 1:19 am

If you want to get fancy for no good reason at all, if you happened to have a field you could watch this in the card script:

Code: Select all

on moveStack
   put the loc of this stack into fld 1
end moveStack
This works similarly to the fabulous "mouseMove" message.

Craig Newman

dpatterson
Posts: 24
Joined: Wed Jan 18, 2017 5:38 pm

Re: Detect window move

Post by dpatterson » Tue Feb 14, 2017 1:14 am

Thanks for the replies.
So simple once you know how. :wink:

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”