in reply to updating size of scrollable Area in TK::Table
BEGIN { *Tk::Table::clear = \&clear unless defined &Tk::Table::clear; } sub clear { my $self = shift; my $rows = $self->cget(-rows); my $cols = $self->cget(-columns); foreach my $r (1 .. $rows) { foreach my $c (1 .. $cols) { my $old = $self->get( $r, $c ); next unless $old; $self->LostSlave($old); $old->destroy; } } $self->_init; $self->QueueLayout(_SlaveSize); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: updating size of scrollable Area in TK::Table
by FunnyName (Initiate) on May 12, 2009 at 07:49 UTC |