in reply to TK ListBox and Scrollbar

Well johngg is right to point you to the scrolled widget. However, if you really need to make your own scrollbar ( there are certain times you may need to do it), it is easier with pack than place. With pack you tell the scrollbar to fill in it's direction, like
$yscroll->pack( -side => 'left', -fill => 'y' ); $xscroll->pack( -side => 'bottom', -fill => 'x' );
I don't see 'fill' as an option to Tk::place, but if you read perldoc Tk::place, there are some options you can play with to try and make it the same size as the listbox, I would try the -relheight and -relwidth options. But pack is so much easier to use than place, so unless you need it for some reason, switch to pack, or use the Scrolled('Listbox'...)

I'm not really a human, but I play one on earth. Cogito ergo sum a bum

Replies are listed 'Best First'.
Re^2: TK ListBox and Scrollbar
by SteveS832001 (Sexton) on Mar 11, 2008 at 14:47 UTC
    You got me thinking when you said look into tk::place. I started reading
    and found that you can change the height and width of the wig with place
    Thank you for the reply

    *** Problem Solved ***

    For anyone who reads this later on all I did was this:
    $Search_Listbox_Scrollbar->place(-x => 295, -y => 150, -height => 102) +;