MATLAB Answers

Cannot get zoom post-callback to work on UIAxes

14 views (last 30 days)
meghannmarie
meghannmarie on 14 Oct 2020
Commented: meghannmarie on 14 Oct 2020
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
meghannmarie
meghannmarie on 14 Oct 2020
I ended up not using it, super buggy. Especially if I customize the toolbar. Pan is also throwing errors.

Sign in to comment.

Answers (0)

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by