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

Scrolling in wish application

Status
Not open for further replies.

tcldude

Technical User
Feb 14, 2007
3
0
0
IL
Hi.
I'm programming under TCL/TK environment.
I've created a GUI but under certain resolutions, I can't see the whole menu and the GUI window doesn't come with a built in scrolling bars.
I want to add to the main frame (.) the ability to scroll - I've tried browsing the web for answers how to use the scrollbar widget but all of them use in the command of the widget the yview (or xview) commands which aren't reacognized under my system.
Is there a simple way to handle this resolution problem by adding scrolling bars to the entire wish window (rather than to a specific widget).
Thank You,
Adi.
 
Look at ScrolledWindow and ScrollableFrame under BWidgets which should have been part of the installation (assuming you used the ActiveState download).
You have to use package require BWidgets to access those features.

On the other hand, in basic Tk you can always treat a text widget with a scrollbar as a primary frame and put everything else inside it. That's what I mostly do since I'm sort of a primitivist when it comes to Tcl.

_________________
Bob Rashkin
 
All you need is ScrolledFrame: a pure tcl package that adds scroll too a frame.

See:
Don't forget to add your widgets in .f.scrolled if you create a scrolledframe named .f

HTH

ulis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top