From: Matt Gushee Date: 2002-10-31T11:10:18+09:00 Subject: Re: working with super? On Thu, Oct 31, 2002 at 09:58:56AM +0900, Alan (Ursus Major) wrote: > The following doesn't produce a visible scroll bar, but if I rewrite it > slighlty so that it calls TkListbox directly, it shows it. What am I doing > wrong here? That's peculiar, and I don't have an answer for you, just a couple of tangential observations: I notice that although the listbox is getting packed, the pack options ('expand' and 'fill') are ignored in both versions of the code. I can't see why that would be. Maybe it's got something to do with what's in and out of scope in nested blocks ... that's just a guess, though--I still don't understand blocks very well. Also, did you know you can do this? @lb = TkListbox.new(@ff, keys) { yscrollbar(TkScrollbar.new(@ff) { pack('side'=>'right', 'fill'=>'y') }) pack('side'=>'right', 'fill'=>'both', 'expand'=>'yes') } Making this change doesn't seem to affect whether the scroll bar gets packed or not; the simplification might make it a little easier to isolate the problem. That yscrollbar method comes from the Scrollable module. -- Matt Gushee When a nation follows the Way, Englewood, Colorado, USA Horses bear manure through mgushee@havenrock.com its fields; http://www.havenrock.com/ When a nation ignores the Way, Horses bear soldiers through its streets. --Lao Tzu (Peter Merel, trans.)