in reply to how can i create a scrollbar in the main window using perl tk

Hi, You can use "use Tk::Scrolled"; and then followed by something like this
my $mw = MainWindow->new(); my ($listbox) = $mw->Scrolled('Listbox',-height=>0, -width=>0, -scroll +bars => 'se')->pack();
Njoi
Raghu

Replies are listed 'Best First'.
Re^2: how can i create a scrollbar in the main window using perl tk
by Anonymous Monk on Dec 18, 2008 at 07:27 UTC
    I dont want to associate any widget(listbox) to the scrollbar. I just want to have a scrollbar that will appear in the main window when it is populated, e.g with other frames (containing widgets like table, entry) that appears on the main window after pressing some buttons on the main window and disappears, pressing those buttons again. Any help !! Thanks in Advance.
      Then you can try something like this:
      $mw->Scrollbar()->pack(-side => 'right', -fill => 'y');
      And then you can associate it with any widget. Check out: PerlTK
      Njoi
      Raghu
        Thanks!! Can i associate frames with the scrollbar? If yes then How? Also there are multiple frames, how can I associate the scrollbar with all of them?