📄 waitfig.m
字号:
function h = waitfig(varargin)
%WAITFIG
% Member of IMUI
% Kotaimen.C, 2002/05 - 2002/07, All Rights Reserved
if nargin == 0
waittext = 'Please wait...';
else
waittext = varargin{1};
end
handles.fig = figure( ...
'Name', 'IMUI', ...
'Units', 'pixel', ...
'Position', [200 150 350 50], ...
'Color', 'w', ...
'Menubar', 'none', ...
'NumberTitle', 'off', ...
'Resize', 'off', ...
'Visible', 'off', ...
'Interruptible','off', ...
'IntegerHandle','off', ...
'WindowStyle', 'modal');
handles.txt = uicontrol( ...
'Parent', handles.fig, ...
'Style', 'text', ...
'Units', 'pixel', ...
'HorizontalAlignment', 'center', ...
'Position', [0 15 350 20], ...
'String', waittext);
movegui(handles.fig, 'center')
set(handles.fig, ...
'Visible', 'on', ...
'Color', get(handles.txt, 'BackgroundColor'));
pause(0.001); %pause a little while
h = handles.fig;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -