in reply to How to make a Tk::Button move/slide within a Tk::Table
In motion(), you're calling slideButton() when $isDragging is TRUE. What you want to do is call that function when you've stopped dragging the button. I haven't looked too closely at your code but suspect moving the call to slideButton() from motion() to buttonRelease() might fix the problem (which possibly means you'll no longer need $isDragging or buttonPress() and its associated bind()).
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to make a Tk::Button move/slide within a Tk::Table
by bcarroll (Pilgrim) on Feb 08, 2012 at 20:53 UTC | |
by kcott (Archbishop) on Feb 08, 2012 at 22:04 UTC | |
by bcarroll (Pilgrim) on Feb 09, 2012 at 12:14 UTC |