I cannot get the zoom post-callback to work on UIAxes in app designer. The pre-callback works fine. Here is what I have which is embedded in the app startup function:
h = zoom(app.UIAxes);
h.ActionPreCallback = @myprecallback;
h.ActionPostCallback = @mypostcallback;
h.Enable = 'on';
function myprecallback(obj,evd)
disp('A zoom is about to occur.');
end
function mypostcallback(obj,evd)
disp('A zoom has occurred.');
end
I followed the example in the help and it works of course, but it is not on a UIAxes.
9 Comments
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/613126-cannot-get-zoom-post-callback-to-work-on-uiaxes#comment_1057901
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/613126-cannot-get-zoom-post-callback-to-work-on-uiaxes#comment_1057901
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/613126-cannot-get-zoom-post-callback-to-work-on-uiaxes#comment_1059221
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/613126-cannot-get-zoom-post-callback-to-work-on-uiaxes#comment_1059221
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/613126-cannot-get-zoom-post-callback-to-work-on-uiaxes#comment_1059241
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/613126-cannot-get-zoom-post-callback-to-work-on-uiaxes#comment_1059241
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/613126-cannot-get-zoom-post-callback-to-work-on-uiaxes#comment_1059271
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/613126-cannot-get-zoom-post-callback-to-work-on-uiaxes#comment_1059271
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/613126-cannot-get-zoom-post-callback-to-work-on-uiaxes#comment_1059346
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/613126-cannot-get-zoom-post-callback-to-work-on-uiaxes#comment_1059346
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/613126-cannot-get-zoom-post-callback-to-work-on-uiaxes#comment_1059371
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/613126-cannot-get-zoom-post-callback-to-work-on-uiaxes#comment_1059371
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/613126-cannot-get-zoom-post-callback-to-work-on-uiaxes#comment_1059421
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/613126-cannot-get-zoom-post-callback-to-work-on-uiaxes#comment_1059421
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/613126-cannot-get-zoom-post-callback-to-work-on-uiaxes#comment_1059526
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/613126-cannot-get-zoom-post-callback-to-work-on-uiaxes#comment_1059526
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/613126-cannot-get-zoom-post-callback-to-work-on-uiaxes#comment_1060098
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/613126-cannot-get-zoom-post-callback-to-work-on-uiaxes#comment_1060098
Sign in to comment.