Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scrolling buttons in a Scrolled method

Status
Not open for further replies.

jpasquini

Programmer
Apr 20, 2006
44
US
Hi All,

This might be an easily answered but hard found question.......

So using the Scrolled method allows you to create a window with automatic scrollbars, which is great.
And I figured out the riddle of how to set attributes of said Scrolled scrollbar by adding this line:

$TheWidget-> Subwidget("xscrollbar")-> configure (-background=> "green");

However, I have found that when you place several buttons in a row on a Scrolled widget, all left justified, and they are too many to fit in the window, Scrolled just cuts off the button row at the right side of the screen and no 'auto scrollbar' appears. Even if you specify it by adding the attribute:

-scrollbars => 'osoe',

and if you force it with:

-scrollbars => 'se',

you get a scrollbar that doesn't scroll!!


I thought about using a Canvas, but have been told this is definitely not the way, and little else. Does anyone know what I am missing, i.e., how to add a scrollbar to a Scrolled widget?
It can't be that difficult.


Thanks

jpasquini
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top