www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@xregGui/@uipushtool/pCDataChanged.m
function pCDataChanged(obj) %PCDATACHANGED Update toolbar after CData is changed % % PCDATACHANGED(OBJ) is called when the CData of the button is changed. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. sz = size(obj.CData); if length(sz)==2 sz = [sz 0]; end if all(sz==obj.CDataSizeCache) obj.Parent.pNotifyNewButtonImage(obj); else obj.Parent.pNotifyNewButtonSize(obj); end obj.CDataSizeCache = sz;