MousePanningExample

版本 1.0.0.0 (4.6 KB) 作者: Meade
Simple template for incorporating mouse-bound axis panning in a gui.
62.0 次下载
更新时间 2017/3/30

查看许可证

MousePanningExample v1.00
This function offers a simple template that demonstrates custom panning behavior bound to mouse movement. This Fcn doe NOT use the native |pan| function.
Default behavior is to pan the designated axis when the MIDDLE MOUSE button is held and dragged. This can be changed to the LEFT MOUSE or RIGHT MOUSE by simply changing the expected click type in the |startPan| fcn below.

This example was inspired by the excellent |akZoom| fnc written by Alexander Kessel. I've deconstructed it a bit in order to make it easier to incorporate with GUIs that already have actions bound to the 'mouse up' and 'mouse down' callbacks.

引用格式

Meade (2024). MousePanningExample (https://www.mathworks.com/matlabcentral/fileexchange/62364-mousepanningexample), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2015b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Migrate GUIDE Apps 的更多信息
标签 添加标签
致谢

参考作品: akZoom

Community Treasure Hunt

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

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