Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

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


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
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-05-25 01:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found