MATLAB: Is there way to detect when a figure has been moved

window repositioned

I'm trying to initiate a function when a user moves the figure. All of the key or button press functions (e.g.. WindowButtonDownFcn) only become active when the mouse click occurs within the figure, not when the mouse is clicked over the Windows title bar when repositioning the figure.

Best Answer

Maybe set up a timer to check the "Position" property of the figure window???