Button leaving behind droppings

John Ridge ridge11103 at btinternet.com
Tue Jul 5 06:37:30 EDT 2005


But on further reflection - this is the behaviour you have scripted! You
haven't said anything about erasing the remains of the last "set the loc".
The "grab" command presumably does pay attention to this...

Yes?
John


***********************************
on 4/7/05 10:04 pm,  Alex Tweedly wrote :


Is there something else I ought to do (or not do) here ?

Create a new mainstack
Create a button in it  (all default values)

edit the card script to say

on mouseMove
put the loc of button "button" into tLoc
put item 1 of the mouseloc into item 1 of tLoc
set the loc of button "button" to tLoc
end mouseMove

and the button moves along with the mouse, just like you'd want.

Then Inspect the button, and select "default button" - now the button
moves, but leaves behind "droppings" as it moves.

Is there something else I ought to do to move a "default" button, or
should I BZ this ?
(winXP, Rev 2.6, and 2.5 but not 2.2)

**************************





More information about the use-livecode mailing list