开发者

WinForms Touchpad Scrolling

开发者 https://www.devze.com 2023-03-08 07:55 出处:网络
I\'m working on a winforms application meant for touchpads and would like the user to be able to scroll through the contents by sw开发者_如何转开发iping their finger across the screen. I see that wind

I'm working on a winforms application meant for touchpads and would like the user to be able to scroll through the contents by sw开发者_如何转开发iping their finger across the screen. I see that windows (at least windows 7) has this behavior built in for any scrollable control. However the control I'm trying to scroll is a third party control that went ahead and made its own scrollbar elements, so this built in behavior is lost.

I could get the same behavior by placing that third party control in a panel, and letting that panel handle the scrolling. However when the user swipes on that control, its containing panel doesn't hear those events and scrolling never takes place.

Are they any resources on how windows handles touchpad scrolling, or how I could make a panel respond to touchpad swipes when the cursor is inside one of its child controls?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号