move textbox script
Ken Norris
pixelbird at interisland.net
Mon Jul 12 04:01:27 EDT 2004
OOPS. Darn! I did it again (forgot to replace subject line), sorry :-(
Anyway, Hi Bob,
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