📄 statusbar.m
字号:
function statusbar(msg)%STATUSBAR Display a message in the statusbar%% Copyright (c) 1995 by Claudio Rivetti and Mark Young% claudio@alice.uoregon.edu, mark@alice.uoregon.edu%global txt_sb SB_frame Uibgcolor Handlefigif nargin<1 SB_frame = uicontrol(Handlefig, 'Style', 'frame',... 'units', 'normalized',... 'Position', [0 0 1 0.08],... 'tag', 'statusbarui',... 'BackgroundColor', Uibgcolor); txt_sb = uicontrol(Handlefig, 'Style', 'text',... 'String', [],... 'units', 'normalized',... 'Position', [0.01 0.002 0.98 0.03],... 'HorizontalAlignment', 'left',... 'BackgroundColor', Uibgcolor,... 'tag', 'statusbarui',... 'ForegroundColor', 'blue');else msg=strrep(msg,'\','/'); set(txt_sb, 'String', msg); drawnow;end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -