How to update window content while dragging?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Srdjan
Posts: 26
Joined: Mon Aug 04, 2008 7:17 am

How to update window content while dragging?

Post by Srdjan »

Hi
I would like to be able to (while moving stack window on the screen) show window coordinates of the window in text field.
Problem is that nothing happens while dragging. Text field gets refreshed only when I release window.
There must be something I am missing here.

Regards
bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4219
Joined: Sun Jan 07, 2007 9:12 pm

Re: How to update window content while dragging?

Post by bn »

Hi srdjan,
try this in the script of the stack or the script of the card your field is on:

Code: Select all

on moveStack
   put the rect of this stack into field 1 of card 1
end moveStack
that should do it.
regards
Bernd
Srdjan
Posts: 26
Joined: Mon Aug 04, 2008 7:17 am

Re: How to update window content while dragging?

Post by Srdjan »

This is it!

Thank you Bernd
Post Reply