Drag & drop controls inside a scroller
jmyepes at mac.com
Thu Oct 18 02:09:49 EDT 2012
I need help to drag and drop controls inside a scroller.
Someone have any experience about? Grab me don't work nor the classic drag
and drop operations.
I found a great sample from Scoot Rossi showing the misteries of drag and
That run fine on iOS, but using the same inside the scroller no.
put (the mouseH - left of me),(the mouseV - top of me) into allowDrag
on mouseMove x,y
if allowDrag = "" then exit mouseMove
set topLeft of me to \
(x - item 1 of allowDrag) & "," & (y - item 2 of allowDrag)
# if within(grc box1,loc of me) then put "You hit box 1" into fld
# if within(grc box2,loc of me) then put "You hit box 2" into fld
put "" into fld status
if intersect(me,grc box1) then put "You hit box 1" into fld status
if intersect(me,grc box2) then put "You hit box 2" into fld status
put empty into fld status
put "" into allowDrag
This is the code inside of the button that I want drag. The control move
only a few pixels and stop...
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Drag-drop-controls-inside-a-scroller-tp4656481.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the Use-livecode