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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Scrollbars without Text

Status
Not open for further replies.

tCarls

Programmer
Dec 26, 2006
13
US
Is it possible to associate a scrollbar with a widget
other than text? I'm using more frames than will fit
on the screen. I'd like to do something similar to
the following:

#!/usr/bin/wish

for {set i 0} {$i < 100} {incr i} {
button .$i -text button
grid .$i -row $i -column 0
}

scrollbar .scroll -command ". yview" -orient v
grid .scroll -row 0 -rowspan 10 -column 1 -sticky ns
 
BWidgets has a scrolled frame but, really, it doesn't do anything more (IMHO) than packing all your widgets into a scrolled text widget. To answer your implicit question, no, you can't scroll a toplevel.

_________________
Bob Rashkin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top