www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/+mbcgui/+hgclassesutil/locationlistener.m
function L = locationlistener(obj, callback, ~) %LOCATIONLISTENER Construct a listener for location change of an HG component. % % L = LOCATIONLISTENER(OBJ, CALLBACK, WHEN) constructs a position % listener for the object OBJ. When listening to the location 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);