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

perl/tk widget: how can I add the 'scrolling' option?

Status
Not open for further replies.

alcatom

Programmer
Oct 18, 2000
2
FR
how can I create a window with a 'scroll' function?
I mean like when you write <SCROLLING=&quot;yes&quot;> at the top of an HTML page.
in my case, it's not html. I have too many boxes and text in my frame, and I can't manage to enable this scrolling function in my window (to view the rest of the window, which is hidden from my screen).
thanks a lot. [sig][/sig]
 
You must use a scrolled widget...

$scrolled = $parent->Scrolled(widgetClass...);

For example

$dest_box = $LeftFrame -> Scrolled(Listbox, -height=>6, -scrollbars=>'e');

 
okey, thanks.

but the problem is that I want to scroll a 'Frame', 'a window', like when you scroll any window in any environment. I mean a group of widgets, not a listbox. a group of labels, entries. But the 'Frame' widget does not support the 'yscrollcommand' option. what can I do? argh! [sig][/sig]
 
I ran into this a while back and ended up scrolling a canvas and then dropping the other widgets onto the canvas. This is a little tedious, but, it worked and the coding went reasonably quickly once I figured out the syntactic patterns. Sorry, I can put my hands (mouse) on the few examples I have of this. If I find one, I'll post it.
[sig]<p> <br><a href=mailto: > </a><br><a href= > </a><br> keep the rudder amid ship and beware the odd typo[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top