Dragging from a list field

Robert Brenstein rjb at robelko.com
Sun Aug 28 04:48:52 EDT 2005


>Hi Jacqueline,
>
>I am not sure if this meets exactly your expectations, but you might 
>have a look at my sample stack "Dragging with List Fields" on page 
>"Tools and Samples for Development of my site 
><http://www.sanke.org/MetaMedia> (scroll down to the bottom of the 
>page).
>
>Of the six examples offered in the samples stack try example 1 
>"sample stack with three fields" of 1. "between list fields". You 
>would have to change the script of field 1 - or one of the other 
>fields - to accept a right-button mouseclick to distinguish between 
>normal list behavior and dragging from the list.
>
>add "on mousedown x
>       if x is 3 then"
>
>to the field script and you could then have normal list behavior and 
>at the same time dragging behavior when the other mouse button is 
>being pressed.
>
>Best regards,
>
>Wilhelm
>

Jacque, have you tried using mouseStillDown to distinguish between a 
simple, quick click (index function) and 'holding-click' (to drag)? 
You could even change the cursor for user to know when the mode 
changed.

Robert



More information about the use-livecode mailing list