Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Tk scrollbar

by kelan (Deacon)
on Oct 28, 2004 at 13:26 UTC ( #403386=note: print w/replies, xml ) Need Help??


in reply to Re^2: Tk scrollbar
in thread Tk scrollbar

To get your widgets to stretch using the grid manager, you need to specify the -sticky attribute. Basically for a given widget, you tell grid which sides (n,s,e,w) should "stick", and it makes sure those sides of the widget always touch the appropriate border of the widget's grid cell. In this case, you want the scrollbar to extend all the way from the top of the cell to the bottom, so you want the top (n) and bottom (s) of the widget to stick:

$f->Listbox()->grid($f->Scrollbar(), -sticky => 'ns');

Replies are listed 'Best First'.
Re^4: Tk scrollbar
by Perluser (Novice) on Oct 28, 2004 at 16:38 UTC
    Yes, that's what I wanted. Thanks to everyone.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2022-09-30 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (126 votes). Check out past polls.

    Notices?