Ignore:
Timestamp:
Dec 19, 2011, 10:12:56 AM (12 years ago)
Author:
sommeria
Message:

name2display replaced by fileparts_uvmat and find_file_series in series.
name2display partially replaced in civ.m (to be continued)
series.fig reorganized with panels.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/update_waitbar.m

    r19 r339  
    77
    88function update_waitbar(hwaitbar,bar_size,advance_ratio)
    9 waitbarpos(1)=bar_size(1);
    10 waitbarpos(3)=bar_size(3);
    11 waitbarpos(4)=advance_ratio*bar_size(4);
    12 waitbarpos(2)=bar_size(4)+bar_size(2)-waitbarpos(4);
    13 set(hwaitbar,'Position',waitbarpos)
     9% waitbarpos(1)=bar_size(1);
     10% waitbarpos(3)=bar_size(3);
     11% waitbarpos(4)=advance_ratio*bar_size(4);
     12% waitbarpos(2)=bar_size(4)+bar_size(2)-waitbarpos(4);
     13% set(hwaitbar,'Position',waitbarpos)
     14set(hwaitbar,'Units','pixels')
     15pos=get(hwaitbar,'Position');
     16CData=zeros([floor(pos(4)) floor(pos(3)) 3]);
     17set(hwaitbar,'Units','normalized')
     18CData(:,1:floor(advance_ratio*size(CData,2)),1:2)=1;
     19set(hwaitbar,'CData',CData)
    1420drawnow
Note: See TracChangeset for help on using the changeset viewer.