×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

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

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

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

(OP)
how can I create a window with a 'scroll' function?
I mean like when you write <SCROLLING="yes"> 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.

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

You must use a scrolled widget...

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

For example

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

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

(OP)
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!

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

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.




keep the rudder amid ship and beware the odd typo

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close