For Programmers: Free Programming Magazines  


Home > Archive > Tcl > January 2008 > Re: Getting the touchpad to scroll a tk canvas properly on a MacBook









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Getting the touchpad to scroll a tk canvas properly on a MacBook
Leon Starr

2008-01-24, 7:31 pm

Okay, I figured it out myself. Not a surprising solution, but what a
pain in ass finding it!!!


if {[tk windowingsystem] eq "aqua"} {
bind $c.canvas <MouseWheel> { %W yview scroll [expr {-%D}] units }
bind $c.canvas <Shift-MouseWheel> { %W xview scroll [expr {-%D}]
units }
}

And now I can have a cookie.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com