Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Perl/Tkx Mousewheel

by Crian (Chaplain)
on Mar 10, 2009 at 14:41 UTC ( #749615=note: print w/ replies, xml ) Need Help??


in reply to Perl/Tkx Mousewheel

In one of my programs i found this lines:

$mw->bind('<MouseWheel>', [ sub { my $wert = -($_[1]/120); $wert = '+' . $wert unless $wert =~ /^-/; animation_schalten($wert); }, Tk::Ev('D') ] );

Perhaps it helps?


Comment on Re: Perl/Tkx Mousewheel
Download Code
Re^2: Perl/Tkx Mousewheel
by chiron (Novice) on Mar 10, 2009 at 14:50 UTC
    Using:
    $canvas->g_bind("<MouseWheel>", [ sub { my $wert = -($_[1]/120); $wert = '+' . $wert unless $wert =~ /^-/; print $wert . "\n"; }, Tkx::Ev('D') ]);
    just gives me '-0' all the time

      Note: I use Tk::Ev not Tkx::Ev. I don't know, but it might be a difference.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://749615]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-09-21 10:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (168 votes), past polls