Drag and Drop
richmondmathewson at gmail.com
Thu May 9 15:36:17 CDT 2013
On 05/09/2013 11:07 PM, Scott Rossi wrote:
> Only you can know why you always use that technique,
What? you expect me to know my own mind? LOL.
I use that technique as I tend to use a single stack, or a signle stack
with associated palettes.
> but with grab,
> there's no way to act upon events/messages while grab is active (thus you
> can't do cursor updates and provide user feedback), and you can't "grab"
> an object across stacks.
Aha; got you.
Why do I have a funny feeling that you could use
to get feedback
Ha, ha,ha . . . I just made a stack containing a button "DRAG ME ABOUT"
and a field "KOUNT"
in the button I have this script:
put fld "KOUNT" into KOUNT
add 1 to KOUNT
put KOUNT into fld "KOUNT"
wait 3 ticks
put empty into fld "KOUNT"
Try it, I dare you . . . you get feedback.
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
> On 5/9/13 12:42 PM, "Richmond" <richmondmathewson at gmail.com> wrote:
>> On 05/09/2013 09:01 PM, Mark Wieder wrote:
>>> Ray Horsley <ray at ...> writes:
>>>> What am I missing to get drag/drop working consistently?
>>> You might also want to look at
>> Why do I always just use
>> on mouseDown
>> grab me
>> end mouseDown
>> then set up a load of images as dropTargets and have stuff like this in
>> the grabbedObject:
>> on mouseUp
>> if not within (img "target", the mouseloc) then
>> set the loc of me to 857,673
>> end if
>> end mouseUp
>> must be missing something.
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode