configresize.m
来自「很多matlab的源代码」· M 代码 · 共 28 行
M
28 行
function configresize(hFig)%CONFIGRESIZE Configure GUI to handle resizing operations.% CONFIGRESIZE(hFig) changes the units and fontunits of all objects that support these% units to 'normalized'. Then, when a figure is resized all objects are resized% accordingly. %% This function should be used in conjunction with the RESIZEFCN function.%% See also RESIZEFCN% Jordan Rosenthal, 22-Jun-99error(nargchk(1,1,nargin));%-------------------------------------------------------------------------------% Get handles%-------------------------------------------------------------------------------hAxes = findall(hFig,'type','axes');hText = findall(hAxes,'type','text');hUIControls = findall(gcf,'type','uicontrol');hUIText = findall(hUIControls,'style','text');hUIFrames = findall(hUIControls,'style','frame');%-------------------------------------------------------------------------------% Set objects to normalized units%-------------------------------------------------------------------------------set([hAxes; hText; hUIControls],'units','normalized','fontunits','normalized');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?