Change value with mouse wheel scrolling

版本 1.0.0 (62.2 KB) 作者: Y.Yang
This app demonstrates how to change values of spinner, slider and table data with mouse wheel scrolling.
286.0 次下载
更新时间 2020/9/11

查看许可证

Tips:

1. WindowScrollWheelFcn to catch mouse wheel scroll event.
2. Tag UI elements for use mouse wheel scrolling.
3. If there are multiple tabs, change the tag array for mouse events.
4. Loop tagged UI elements to match the current mouse pointer, getpixelposition(h,recursive) is usefull for finding the absolute position of h.
5. The height of a slider is 3, so it is not easy to cover it with mouse pointer.

引用格式

Y.Yang (2024). Change value with mouse wheel scrolling (https://www.mathworks.com/matlabcentral/fileexchange/80071-change-value-with-mouse-wheel-scrolling), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2020a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0