www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffgui/@mmModelSetupView/pSetParent.m

    function f = pSetParent(obj, f)
%PSETPARENT Perform parent-setting operations 
%
%  F = PSETPARENT(OBJ, F) is called during the setting of the parent
%  property.

%  Copyright 2008-2011 The MathWorks, Inc.


if ~isempty(f)
    set(obj.hToleranceLabel, 'Parent', f);
    set(obj.hTolerance1, 'Parent', f);
    set(obj.hTolerance2, 'Parent', f);
    set(obj.hTableLabel, 'Parent', f);
    set(obj.hTable, 'Parent', f);
end