www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/+mbcgui/@Application/setStatusMessage.m
function msgID = setStatusMessage(obj, varargin) %SETSTATUSMESSAGE Set a status message in the application. % % MSGID = setStatusMessage(OBJ, MESSAGE) displays the string in MESSAGE % in the status bar and retuns an associated ID that can be used to % remove it. % % setStatusMessage(OBJ, MSGID, MESSAGE) alters the message associated % with MSGID. % % See also clearStatusMessage, removeStatusMessage. % Copyright 2008-2010 The MathWorks, Inc. if nargin==2 msgID = obj.StatusBar.addMessage(varargin{:}); else obj.StatusBar.changeMessage(varargin{:}); msgID = varargin{1}; end