statusbar.m

来自「matlab处理图像的一些基本方法。其中有一部分mex程序需要安装编译」· M 代码 · 共 32 行

M
32
字号
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 + =
减小字号Ctrl + -
显示快捷键?