![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/232350/image.png)
Zoom and WindowScrollWheel callback not working together on App Designer
조회 수: 15 (최근 30일)
이전 댓글 표시
Hello,
I'm creating a GUI with three UIAxes in a figure. I want both to be able to zoom in the axes ( I set zoom(app.UIAxes, 'on') for all three axes) and to control the callback WindowScrollWheel of the mouse wheel.
So I want that when I scrool the wheel of the mouse over the UIAxes both the zoom on the axes works and the callback is called.
Now, since I added the callback in my App Designer app, the zoom doesn' t work anymore. Is it possible to have both working together?
Thanks,
Giacomo
댓글 수: 0
답변 (1개)
Anmol Dhiman
2019년 8월 2일
It is possible to run both Zoom and Callback together on App Designer .
There is no need of zoom(app.UIAxes, 'on') statement.
Manually select the zoom by hovering on the Particular axes.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/232350/image.png)
On scrolling over the particular axes, both callback function and zoom on axes will work.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Visual Exploration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!