www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcwidgets/@classicTable/pPostSetParent.m
function val = pPostSetParent(obj, val) %PPOSTSETPARENT Respond to parent being set % % PPOSTSETPARENT(OBJ, EVT) is called after the object's parent property % has been set. % Copyright 2006-2010 The MathWorks, Inc. and Ford Global Technologies, Inc. obj.super('pPostSetParent', val); set([obj.hSliderbar;obj.vSliderbar], 'Parent', obj.Parent); set(obj.TopLeftCorner, 'Parent', obj.Parent); set(obj.TopRightCorner, 'Parent', obj.Parent); set(obj.BottomLeftCorner, 'Parent', obj.Parent); set(obj.BottomRightCorner, 'Parent', obj.Parent); set(obj.EmptyTableComponent, 'Parent', obj.Parent); % Switch grid visible status without disturbing contents setBoolPackstatus(obj.gridObject, false); el = get(obj.gridObject, 'elements'); set(obj.gridObject, 'elements', {}, 'parent', obj.Parent, 'elements', el); setBoolPackstatus(obj.gridObject, true);