samizdat has asked for the wisdom of the Perl Monks concerning the following question:
My problem is that $bpanelframe does not resize to accomodate the number of buttons inside it. Before calling this code the previous panel's $bpanelframe was ->packForget-ed. I either get blank space between the buttons or some buttons are neatly hidden underneath the frame packed below it.... for (my $i = 0; $i <= $#$rrecent; $i++) { $$rbut[$i] = $bpanelframe->Button( -text => $$rrecent[$i], -fg => $clrfgbut, + -activeforeground => $clrfgbut, -command => [\&fire, $$rrecent[$i], $_[0]] ) ->pack( -side => 'top', -anchor => 'n', -fill => 'x', -expand => 1 );} } ... $bpanelframe->pack( -side => 'top', -anchor => 'n', -fill => 'both', -expand => 1 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: dynamic resizing in Tk
by zentara (Cardinal) on Jan 17, 2005 at 21:18 UTC | |
by samizdat (Vicar) on Jan 17, 2005 at 21:27 UTC | |
by zentara (Cardinal) on Jan 17, 2005 at 21:30 UTC | |
by samizdat (Vicar) on Jan 17, 2005 at 22:07 UTC | |
by samizdat (Vicar) on Jan 17, 2005 at 21:44 UTC |