Grabbing a widget
Richmond Mathewson
richmondmathewson at gmail.com
Wed Jun 27 10:50:03 EDT 2018
is problematic.
I have an SVG widget called "h5" which I am trying to drag to a drop target,
which should be easy-peasy, but isn't.
LiveCode 8.1.8
The widget contains this code:
on mouseDown
grab me
end mouseDown
on mouseUp
if intersect(widget "h1", widget "h5",5) then
set the loc of widget "h5" to the loc of widget "h1"
else
set the loc of widget "h5" to 99,364
end if
end mouseUp
which is nothing spectacular.
HOWEVER in Edit mode widget "h5" moves around with the mouse!
It does NOT get grabbed on a MouseDown as it should.
Richmond.
More information about the use-livecode
mailing list