www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@xregGui/@dividerline/copyobj.m
function newobj=copyobj(obj,fig) %COPYOBJ Copy object to new figure % % newobj=copyobj(obj,fig) % % Copyright 2000-2010 The MathWorks, Inc. and Ford Global Technologies, Inc. newobj = xregGui.dividerline; % Transfer values of public properties across set(newobj,get(obj)); newobj.Parent = fig; % Setup private values newobj.OrientState = obj.OrientState; % copy UI objects newobj.ControlH = [copyobj(obj.ControlH(1),fig), copyobj(obj.ControlH(2),fig)]; % perform setup tasks (listeners etc) newobj.doSetupL;