www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@xreglistctrl/delete.m

    function delete(obj)
%DELETE
% removes object from view by deleting the slider, the frame 
% and all controls inside

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


if isgraphics(obj.frame) && ~mbcgui.util.isBeingDestroyed(obj.frame)
    delete(obj.frame);
end