When using the resizeFcn property with figures, there are two ways that Windows and MATLAB appear to be handling this event.
If I resize the window from the right or bottom (east or south), windows waits for a mouse up event before attempting to redraw.
When resizing from top or left (north or west) edge of the figure, it repeatedly resizes (calls ResizeFcn) the window upon mouse movement.
What I would like is for my resizeFcn to get called only once on the mouse up. Please execute the function given below and resize using different edges of the figure window.
%%%%%%%%%%%%%%%%
function resize_bug()clcglobal If=figure;plot(1:10);I=1;set(f,'resizefcn',@myresizefigure);function myresizefigure(src,evt) % RESIZING OPERATIONS
global I get(gcf, 'position'); fprintf('RezizeFcn call # : %d \n',I) I=I+1;%%%%%%%%%%%%%%%%
Best Answer