My mental visualisation of what you're trying to achieve was clearly wrong. My apologies.
You'll need to keep track of each cell the button is dragged through. When it enters a new cell, you'll need to blank out the last cell: probably easiest to use a Label without text, e.g. $table->put($r, $c, '').
You also mentioned you wanted to move any existing button to a new cell ("... push the button under it to the right or to the next row ..."). I think you'll need to capture the return value of $table->put() to achieve this; although there's probably other ways of doing it.
I hope that's a bit closer to what you're after.
-- Ken
In reply to Re^3: How to make a Tk::Button move/slide within a Tk::Table
by kcott
in thread How to make a Tk::Button move/slide within a Tk::Table
by bcarroll
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |