use-revolution Digest, Vol 10, Issue 37

Ken Norris pixelbird at interisland.net
Mon Jul 12 02:55:28 CDT 2004


On Jul 11, 2004, at 9:00 AM, use-revolution-request at lists.runrev.com 
wrote:

> All I want to do it click on a text field and have it move to where I 
> drag it.

=========
Clicking in an unlocked field always activates the text cursor. That's 
how they work.

To allow user dragging, you must first set the lockText of the field in 
a button:

Button script:

on mouseUp
   set the lockText of fld x to true
end mouseUp



Then in the field script:

on mouseDown
   grab me
end mouseDown

on mouseUp
   set the lockText of me to false
end mouseUp

HTH,
Ken N.



More information about the use-livecode mailing list