Araviz has asked for the wisdom of the Perl Monks concerning the following question:
I created a scrolled list box but when I populate it with more entries than can be displayed (more than 5 entries), the scroll bar is greyed out - not allowing me to scroll. Resizing the window after it's populated activates the scroll bar, as does a separate function that fills that box. I'm running on a Windows XP machine. Hopefully this is all the relevent code needed to determine the problem.
my $frm1 = $mw -> Frame(-bg=>'LightSkyBlue1') -> pack(-fill => 'x'); my $frm11 = $frm1 -> Frame(-bg=>'LightSkyBlue1') -> pack(-fill => 'x') +; my $lst = $frm11 -> Scrolled('Listbox', -width => 50, -height => 5, -scrollbars => 'oe', -selectmode => 'single') -> pack(); (generate @lst_files) $lst -> delete ('0.0', 'end'); $lst -> insert('end', @lst_files); $mw->update;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Inactive Scroll Bar - Scrolled Listbox
by zentara (Cardinal) on Apr 12, 2011 at 16:26 UTC | |
by Araviz (Initiate) on Apr 12, 2011 at 16:42 UTC | |
by lamprecht (Friar) on Apr 12, 2011 at 16:56 UTC | |
by Araviz (Initiate) on Apr 12, 2011 at 18:17 UTC |