set(0,'DefaulttextFontSize',fntsz)
fig=gcf;
set(findall(fig,'-property','FontSize'),'FontSize',12)
> fig=gcf;
> set(findall(fig,'-property','FontSize'),'FontSize',12)
the fonts change but when i excute get(gcf) i dont see the 'FontSize' data? How can i view what is stored in the '-property' switch?
"Bruno Luong" <b.l...@fogale.fr> wrote in message <g67lll$1e1$1...@fred.mathworks.com>...
findall(fig, '-property', 'FontSize') operates very similarly to
findobj(fig, '-property', 'FontSize'). From the reference page for FINDOBJ:
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/findobj.html
"h = findobj('-property','PropertyName') finds all objects having the
specified property.
h = findobj(objhandles,...) restricts the search to objects listed in
objhandles and their descendants. "
The ... in the description of the second syntax I've quoted indicates that
you can use the objhandles input and follow it with other syntaxes in your
call. So this searches for all objects in fig and its decendants (because
of the objhandles syntax) for any object with the property FontSize (because
of the first syntax I quoted above, the one using '-property'.) The object
whose handle is stored in fig (the figure) does not need to have the
property FontSize; the FINDALL call will find all objects descended from fig
that do possess that property.
--
Steve Lord
sl...@mathworks.com