www.gusucode.com > mbclayouts 工具箱 matlab 源码程序 > mbclayouts/@xregflowlayout/copyobj.m
function newobj=copyobj(obj,fig) %COPYOBJ Create a copy of an object in a new figure % % NEWOBJ=COPYOBJ(OBJ,FIG) creates a replica of the object OBJ in the % figure FIG. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. newobj = obj; % pass on call to parent newobj.xregcontainer = copyobj(obj.xregcontainer,fig); % create new pointer reference newobj.g = xregGui.RunTimePointer; connectdata(newobj, newobj.g); % update data newobj.g.info = obj.g.info;