in reply to Ideas on binding scrollwheel?

Why did you try 3,4,5 (the Tk::Text docs say nothing about the mouswheel)? Try <MouseWheel>

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re: Re: Ideas on binding scrollwheel?
by exussum0 (Vicar) on Jan 08, 2004 at 23:30 UTC
    3,4 and 5 are are the XWindows button's that are triggered when you use the wheel. 4 and 5 are up and down (in some order). Anyway, it's the native X mouse buttons. It doesn't mean that API's represent it as such, as you have shown. In the C one it should, but I haven't written for the mouse wheel :)

    Under the hood of Tk, it gets mouse button "signals" 3,4,5 and the internals of Tk will create events in turn that you receieve when you write event listeners.


    Play that funky music white boy..
Re: Re: Ideas on binding scrollwheel?
by Elijah (Hermit) on Jan 09, 2004 at 21:37 UTC
    Actually <MouseWheel> did work on my Win XP system. I was a little relunctant to try it due to what the author said but mine worked fine.