Is uicontextmenu working for R2020a? // Answer: NO. Use R2019b instead.
1 view (last 30 days)
So I have this function to zoom and pan the plot by clicking the right mouse button.
hCM = uicontextmenu;
hMenu = uimenu('Parent',hCM,'Label','Switch to zoom',...
hPan = pan(gcf);
hPan.UIContextMenu = hCM;
hCMZ = uicontextmenu;
hZMenu = uimenu('Parent',hCMZ,'Label','Switch to pan',...
hZoom = zoom(gcf);
hZoom.UIContextMenu = hCMZ;
The function allows me to switch between zoom and pan.
Yesterday, this function worked. But suddenly today is not working.
In this order, the default function is zoom-in. However, I cannot switch to pan function.
If I reverse the order, I can switch from pan to zoom, but I cannot go back to pan. This function was amazing for this purpose. Pan and zoom really fast and always available but clicking the right mouse button.
Do you know if the is some update regarding this uicontextmenu with R2020a?