lil_v has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I have a notebook type of GUI and on my first tab, i have multiple collapsable frames. I want to add a scrollbar within one of the collapsable frames. I can't seem to scroll through the frame even if i add a scrollbar. I just have a few Entry widgets and Buttons in each Collapsable Frame. Any suggestions?

Replies are listed 'Best First'.
Re: Scrollbar within a Collapsable Frame
by Anonymous Monk on Jun 21, 2008 at 05:52 UTC
    The docs show an example
    use strict; use warnings; use Tk; use Tk::widgets qw/CollapsableFrame Pane/; my $mw = MainWindow->new; my $pane = $mw->Scrolled( qw/Pane -width 250 -height 50 -scrollbars osow -sticky nw/, )->pack; my $cf = $pane->CollapsableFrame(-title => 'Frame1 ', -height => 50); $cf->pack(qw/-fill x -expand 1/); $cf->toggle; my $colf = $cf->Subwidget('colf'); my $but = $colf->Button(-text => 'Close Frame 1!'); $but->pack; $but->bind('<Button-1>' => [sub {$_[1]->close}, $cf]); MainLoop;
      thx... it works fine now! However, the coll frame doesnt fill x completely :(
Re: Scrollbar within a Collapsable Frame
by Anonymous Monk on Jun 21, 2008 at 05:41 UTC