Ignore:
Timestamp:
Apr 29, 2013, 11:27:46 PM (11 years ago)
Author:
sommeria
Message:

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:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/update_waitbar.m

    r477 r623  
    66
    77function update_waitbar(hwaitbar,advance_ratio)
    8 
     8if ishandle(hwaitbar)
    99set(hwaitbar,'Units','pixels')
    1010pos=get(hwaitbar,'Position');%read waitbar position in pixels
     
    1515set(hwaitbar,'CData',CData)
    1616drawnow
     17end
Note: See TracChangeset for help on using the changeset viewer.