www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcwidgets/@abstractcomponent/printcopy.m
function newobj = printcopy(obj, fig) %PRINTCOPY Create a new component for printing the component display % % NEWOBJ = PRINTCOPY(OBJ, FIG) creates and returns a handle to a new % component, NEWOBJ, parented by the specified figure, FIG. The new % object will be used for printing a copy of the component OBJ. % % Normally the printable version of a component is not a complete copy of % the object. There are often controls that should not appear, such as % popup menus, or components whose information needs to be transformed, % such as edit boxes. % Copyright 2000-2006 The MathWorks, Inc. and Ford Global Technologies, Inc. newobj = axestext('parent', fig, ... 'horizontalalignment', 'center', ... 'verticalalignment', 'top', ... 'string', sprintf('This component does not\nsupport printing'));