|
From: Harald O. <har...@el...> - 2018-06-29 15:19:24
|
Am 29.06.2018 um 16:25 schrieb Brad Lanam: > Ok, WM_[VH]SCROLL are different messages. > > Tk/Windows needs a handler for the WM_MOUSEHWHEEL message. > > https://docs.microsoft.com/en-us/windows/desktop/inputdev/wm-mousehwheel > <https://docs.microsoft.com/en-us/windows/desktop/inputdev/wm-mousehwheel> Hi Brad, have you seen my comment on the Tk ticket: https://core.tcl.tk/tk/info/ab046f476f75fc21 I have read and verified with notepad, that the default windows message handler DefWindowProc will magically create a WM_HSCROLL, if - a WM_MOUSEACTIVATE is received (this was observed, not read) - the target window has a scrollbar If I type enough characters into the notepad entry widget to get a horizontal scrollbar, the WM_HSCROLL was sent. IMHO this is a legacy emulation. This is probably not helpful for Tk. We should find out what is really happenning. The WM_MOUSEACTIVATE si always sent. IMHO, the handler for WM_MOUSEWHEEL is included in Tk. I did not observe the message WM_GESTURE at all (which should IMHO be the right message for this but o.k.). Thank you, Harald |