Re: Slip, sliding away

2016-07-26 Thread Richmond
Cuss me out: http://forums.livecode.com/viewtopic.php?f=7&t=27672&p=145011#p145011 Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http:/

Re: Slip, sliding away

2016-07-25 Thread Scott Rossi
This should do what you want, in the script of the group (set the margins of the group to 0): local scrollX, clickX, allowDrag on mouseDown put hScroll of me into scrollX put mouseH() into clickX put true into allowDrag end mouseDown on mouseMove X,Y if not allowDrag then exit mouse

Re: Slip, sliding away

2016-07-25 Thread Mike Bonner
Another mousemove version.. local sDragging, sLastX on mouseup put false into sDragging end mouseup on mouserelease put false into sDragging end mouserelease on mousedown put true into sDragging put item 1 of the mouseloc into sLastX end mousedown on mousemove px,py if the mouse

Re: Slip, sliding away

2016-07-25 Thread Roger Guay
try putting the following script into each moving image: local tx, ty, dx on mousedown put item 1 of the loc of me into tx put item 2 of the loc of me into ty put tx- the mouseH into dx end mousedown on mouseMove x,y if the mouse is down then set the loc of me to x+dx, ty end mouseMove C

Re: Slip, sliding away

2016-07-25 Thread Paul Dupuis
Put the following in the script of the image that is inside the scrolling group. You may also want to change the cursor to a hand on mouseDown on mouseDown set the hMin of me to 0 set the hPos of me to item 1 of the mouseLoc set the hMax of me to the width of me end mouseDown on mouseStillD

Re: Slip, sliding away

2016-07-25 Thread Richmond
See daft effort here: http://forums.livecode.com/viewtopic.php?f=7&t=27672 Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.ru

Re: Slip, sliding away

2016-07-25 Thread Richmond
Stupid Richmond: on mouseDown set the idleRate to 0 grab me end mouseDown on mouseStillDown set the loc of me to (item 1 of the loc of me, 133) end mouseStillDown http://lists.runrev.com/pipermail/use-livecode/2012-January/166949.html Now: how does one prevent the 'wobble'? Richmond.

Re: Slip, sliding away

2016-07-25 Thread Richmond
Constrained grab? R. On 25.07.2016 12:53, [-hh] wrote: Script your grouped image with the following. local iAmDragged=false on mouseDown set lockloc of me to true put the loc of me into iL put item 1 of iL into i1 put item 2 of iL into i2 lock cursor; set cursor to hand put

Re: Slip, sliding away

2016-07-25 Thread Richmond
That's super; but it does seem a long-winded way to do things. I wonder if I cannot use scrollBarDrag in some way? R. On 25.07.2016 12:53, [-hh] wrote: Script your grouped image with the following. local iAmDragged=false on mouseDown set lockloc of me to true put the loc of me into iL

Re: Slip, sliding away

2016-07-25 Thread [-hh]
Script your grouped image with the following. local iAmDragged=false on mouseDown set lockloc of me to true put the loc of me into iL put item 1 of iL into i1 put item 2 of iL into i2 lock cursor; set cursor to hand put true into iAmDragged dragMeInGrp i1,i2,the mouseH-i1,the mouseV