www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcwidgets/@abstractcomponent/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 2000-2006 The MathWorks, Inc. and Ford Global Technologies, Inc.


% Overload this method to carry out any special processing after a call that
% sets the parent property for a derived object

% Reconnect the figure hook to the new parent
obj.connect(xregfigurehook(obj.Parent),'up');