www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgnormnode/private/pMessage.m
function d = pMessage(d, str) %PMESSAGE Interface for editing browser message % % DATA = PMESSAGE(DATA, STR) sets STR to be the current message in the % normaliser node's browser view. Any existing message is removed. If STR % is empty, any existing message is removed and no new message is added. % DATA is the view data structure for normaliser nodes. % % This function should only be used by methods that are guaranteed to have % been called from a browser callback. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. CGBH = cgbrowser; if isfield(d, 'Handles.MessageID') && ~isempty(d.Handles.MessageID); CGBH.removeStatusMsg(d.Handles.MessageID); d.Handles.MessageID = []; end if ~isempty(str) d.Handles.MessageID = CGBH.addStatusMsg(str); end CGBH.setViewData(d);