www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/+mbcgui/+hgclassesutil/positionlistener.m
function L = positionlistener(obj, callback, ~) %POSITIONLISTENER Construct a listener for position change of an HG component. % % L = POSITIONLISTENER(OBJ, CALLBACK, WHEN) constructs a position % listener for the object OBJ. When listening to the position property % WHEN can be either 'PreSet' or 'PostSet'. % % Note: this function is a helper for HG conversion work and will be % removed in a future release. % Copyright 2012-2014 The MathWorks, Inc. L = {... mbcgui.hgclassesutil.listener(obj, 'LocationChanged', callback),... mbcgui.hgclassesutil.listener(obj, 'SizeChanged', callback),... };