from
choose_transect_limits
by Kevin Bartlett
GUI for choosing time limits of oceanographic transects
|
| resizeguifonts(DeltaFontSize,varargin) |
function [] = resizeguifonts(DeltaFontSize,varargin)
%
% resizeguifonts.m--Takes all the uicontrols in the current figure and
% resizes their fonts to be of size "FontSize" points greater than their
% current size.
%
% Syntax: resizeguifonts(DeltaFontSize,<FigHndl>)
%
% e.g., resizeguifonts(-2)
% Developed in Matlab 6.5.0.180913a (R13) on SUN OS 5.8.
% Kevin Bartlett(kpb@hawaii.edu), 2002/10/03, 13:57
%------------------------------------------------------------------------------
% Handle input arguments.
if nargin == 2
FigHndl = varargin{1};
elseif nargin == 1
FigHndl = gcf;
else
error([mfilename '.m--Incorrect number of input arguments.'])
end % if
chil = findobj(FigHndl,'type','uicontrol');
set(chil,'fontunits','points');
% Change the fontsize of each child object.
for ChilCount = 1:length(chil)
set(chil(ChilCount),'FontSize',get(chil(ChilCount),'FontSize')+DeltaFontSize);
end % for
|
|
Contact us at files@mathworks.com