gusucode.com > vnt工具箱matlab源码程序 > vnt/vntblks/vntmasks/vntslclosedialog.m

    function vntslclosedialog(obj, dlg)
%VNTSLCLOSEDIALOG Callback to handle the dialog close request.
%
%    VNTSLCLOSEDIALOG(OBJ, DLG) performs the close callback request using 
%    the dynamic dialog object DLG and the dialog's source object OBJ.
%
%    This function is invoked every time the mask is closed, regardless
%    what action was taken.

%    SS 04-01-08
%    Copyright 2008-2009 The MathWorks, Inc.

% Delete the CAN object if any exists.
try
    if ~isempty(obj.CANObject) && isvalid(obj.CANObject)
        delete(obj.CANObject);
        clear(obj.CANObject);
    end
catch %#ok<CTCH>
end

% Close the DDG dialog.
closeCallback(obj, dlg);