in reply to Binding columns in Tk::Hlist
If you want the second column to be the same width as the resizable button above it, then Tk::Columns has an event handler that seems up to the job:
use Tk::Columns; if (defined ($p_Slave)) { $p_Slave->GeometryRequest ($this->reqwidth(), $p_Slave->reqheight( +)); $p_Slave->update(); $this->update(); }
It will "slave the listbox to the current width of the button". I hope this helps.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Binding columns in Tk::Hlist
by rcseege (Pilgrim) on Oct 05, 2006 at 17:03 UTC |