www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@xregGui/@labelcontrol/doDelete.m
function doDelete(h) %DODELETE Object deletion callback % % Copyright 2000-2013 The MathWorks, Inc. and Ford Global Technologies, Inc. if isgraphics(h.Parent) && ~mbcgui.util.isBeingDestroyed(h.Parent) delete(h.LabelH); if ~h.hasconnectedcontrol && h.hascontrol delete(h.Control); end end