Last change
on this file since 243 was
19,
checked in by gostiaux, 15 years ago
|
the private files have been moved down to the root folder
|
File size:
731 bytes
|
Rev | Line | |
---|
[8] | 1 | %'update_waitbar': update the waitbar display, used for ACTION functions in the GUI 'series'
|
---|
| 2 | %------------------------------------------------------------------
|
---|
| 3 | %INPUT:
|
---|
| 4 | % hwaitbar: handles of the waitbar to update
|
---|
| 5 | % bar_size: vector with 4 elements, representing the abscissa, ordinate, width, height of the waitbar relative to the GUI
|
---|
| 6 | % advance_ratio: number between 0 and 1 representing the advancement of the calculation (loop index relative to the total length)
|
---|
| 7 |
|
---|
| 8 | function 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)
|
---|
| 14 | drawnow |
---|
Note: See
TracBrowser
for help on using the repository browser.