in reply to Re^2: How to make a Tk::Button move/slide within a Tk::Table
in thread How to make a Tk::Button move/slide within a Tk::Table
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to make a Tk::Button move/slide within a Tk::Table
by bcarroll (Pilgrim) on Feb 09, 2012 at 12:14 UTC |