www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcmultiview/@MultiViewPanel/pObjectBeingDestroyed.m
function pObjectBeingDestroyed(obj, event) %POBJECTBEINGDESTROYED called when the view is being destroyed % % POBJECTBEINGDESTROYED(OBJ, EVENT) saves the component's layout if a % ViewLayoutName has been set. % Copyright 2005-2010 The MathWorks, Inc. and Ford Global Technologies, Inc. if ~mbcgui.util.isBeingDestroyed(ancestor(obj.Parent, 'figure')) delete(obj.hViewContextMenu); end obj.super('pObjectBeingDestroyed', event);