Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: perl Tk::Scrolled : how do I hijack existing subwidget bindings?

by zentara (Cardinal)
on Mar 31, 2005 at 15:25 UTC ( [id://443958]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to perl Tk::Scrolled : how do I hijack existing subwidget bindings?

Well you can get to the actual scrollbar with the Subwidget method.
my $scrollery = $plist ->Subwidget("yscrollbar"); $scrollery ->configure(-background => "green", -troughcolor => "black", -command => \&somecallback );
Now whenever the y scrollbar is moved, the callback will be executed. Read "perldoc Tk::Scrollbar"

I'm not really a human, but I play one on earth. flash japh
  • Comment on Re: perl Tk::Scrolled : how do I hijack existing subwidget bindings?
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://443958]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.