source: trunk/src/displ_uvmat.m @ 643

Last change on this file since 643 was 623, checked in by sommeria, 11 years ago

waitbar system for series improved to aloow use as stand alone fcts.

to add at the head of series fcts:
hseries=findobj(allchild(0),'Tag','series');
RUNHandle=findobj(hseries,'Tag','RUN');%handle of RUN button in GUI series
WaitbarHandle?=findobj(hseries,'Tag','Waitbar');%handle of waitbar in GUI series

call to waitbar:

update_waitbar(WaitbarHandle?,index/nbfield)
if ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction?'),'queue')

disp('program stopped by user')
break

end

File size: 385 bytes
Line 
1%'displ_uvmat': display a message using  msgbox_uvmat or on the log file in batch mode
2%--------------------------------------------------------------------------
3%  function displ_uvmat(title,display_str,Position)
4%
5function displ_uvmat(title,display_str,Position)
6if isequal(Position,0)
7    disp([title ': ' display_str])
8else
9    msgbox_uvmat(title,display_str,'',Position)
10end
11   
Note: See TracBrowser for help on using the repository browser.