www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcwidgets/@abstractcomponent/disableListeners.m

    function disableListeners(obj)
%DISABLELISTENERS Stop registered listeners from firing
%
%  DISABLELISTENERS(OBJ) disables all listeners that have been added to this
%  object using the addListeners or addPropertyListeners methods.

%  Copyright 2000-2006 The MathWorks, Inc. and Ford Global Technologies, Inc.


set(obj.ComponentListeners, 'Enabled', 'off');