in reply to updating size of scrollable Area in TK::Table

If Table->clear does it, you can copy Table->clear in your code
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
    table->clear does use some methods which are not implemented in my version of TK::Table. I do not want to try to copy all that code into my programm, because i saw it using some member variables that are not in my version of TK::table.