Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Inactive Scroll Bar - Scrolled Listbox

by lamprecht (Friar)
on Apr 12, 2011 at 16:56 UTC ( [id://899003]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Inactive Scroll Bar - Scrolled Listbox
in thread Inactive Scroll Bar - Scrolled Listbox

Here is a complete runnable example, that demonstrates the problem:

use strict; use warnings; use Tk; my $mw = tkinit; 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(); $mw->update; $lst -> delete ('0.0', 'end'); $lst -> insert('end',(0..10)); $mw->update; # force scrollbar refresh: # my $sb = $lst->Subwidget('yscrollbar'); # $sb->set( $sb->get ); MainLoop;
See also:
Re: Perl/Tk Optional Vertical Scrollbar Bugfix

Cheers, Christoph

Replies are listed 'Best First'.
Re^4: Inactive Scroll Bar - Scrolled Listbox
by Araviz (Initiate) on Apr 12, 2011 at 18:17 UTC
    That works! Thank you!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://899003]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2026-04-13 12:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.