Ignore:
Timestamp:
Apr 29, 2013, 11:28:23 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/series/civ_input.m

    r609 r624  
    195195%check_letter=~isempty(regexp(NomTypeIma,'[ab|AB]$'));%detect pair label by letter
    196196%if  isequal(NomTypeNc,'_1-2')||isempty(MaxIndex_j)|| (MaxIndex_j==1)
    197 MaxIndex_i=Param.IndexRange.MaxIndex{1};
    198 MaxIndex_j=Param.IndexRange.MaxIndex{1,2};
    199 MinIndex_i=Param.IndexRange.MinIndex{1};
    200 MinIndex_j=Param.IndexRange.MinIndex{1,2};
     197MaxIndex_i=Param.IndexRange.MaxIndex_i{1};
     198MaxIndex_j=Param.IndexRange.MaxIndex_j{1};
     199MinIndex_i=Param.IndexRange.MinIndex_i{1};
     200MinIndex_j=Param.IndexRange.MinIndex_j{1};
    201201if ~isfield(Param.IndexRange,'first_j')
    202202    set(handles.ListPairMode,'Value',1)
Note: See TracChangeset for help on using the changeset viewer.