<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
<MAN>
<LANGUAGE>eng</LANGUAGE>
<TITLE>waitbar</TITLE>
<TYPE>sciGUI toolbox function</TYPE>
<DATE>2004-06-16</DATE>
<SHORT_DESCRIPTION name="waitbar"> Draw a waitbar</SHORT_DESCRIPTION>

<CALLING_SEQUENCE>
<CALLING_SEQUENCE_ITEM>winId=waitbar(x)</CALLING_SEQUENCE_ITEM>
<CALLING_SEQUENCE_ITEM>winId=waitbar(x,mes)</CALLING_SEQUENCE_ITEM>
<CALLING_SEQUENCE_ITEM>winId=waitbar(mes)</CALLING_SEQUENCE_ITEM>
<CALLING_SEQUENCE_ITEM>waitbar(x,winId)</CALLING_SEQUENCE_ITEM>
<CALLING_SEQUENCE_ITEM>waitbar(mes,winId)</CALLING_SEQUENCE_ITEM>
<CALLING_SEQUENCE_ITEM>waitbar(x,mes,winId)</CALLING_SEQUENCE_ITEM>
</CALLING_SEQUENCE>

<PARAM>
<PARAM_INDENT>
<PARAM_ITEM>
 <PARAM_NAME>x</PARAM_NAME>
 <PARAM_DESCRIPTION><SP>: real, fraction to display.</SP></PARAM_DESCRIPTION>
</PARAM_ITEM>
<PARAM_ITEM>
 <PARAM_NAME>mes</PARAM_NAME>
 <PARAM_DESCRIPTION><SP>: string, message to display.</SP></PARAM_DESCRIPTION>
</PARAM_ITEM>
<PARAM_ITEM>
 <PARAM_NAME>winId</PARAM_NAME>
 <PARAM_DESCRIPTION><SP>: integer greater than 0, window identificator.</SP></PARAM_DESCRIPTION>
</PARAM_ITEM>
</PARAM_INDENT>
</PARAM>

<DESCRIPTION>
<P><VERB>waitbar(x)</VERB> create a new waitbar displaying a fraction x, return window identificator.</P>
<P><VERB>waitbar(x,mes)</VERB> create a new waitbar displaying a fraction x and message mes, return window identificator.</P>
<P><VERB>waitbar(mes)</VERB> create a new waitbar displaying a fraction 0 and message mes, return window identificator.</P>
<P><VERB>waitbar(x,mes)</VERB> create a new waitbar displaying a fraction 0 and message mes, return window identificator.</P>
<P><VERB>waitbar(x,winId)</VERB>, <VERB>waitbar(mes,winId)</VERB> and <VERB>waitbar(x,mes,winId)</VERB> update waitbar with window identificator winId.</P>

</DESCRIPTION>

<EXAMPLE>
<![CDATA[winId=waitbar('This is an example');
realtimeinit(0.3);
for j=0:0.1:1,
    realtime(3*j);
    waitbar(j,winId);
end
winclose(winId);]]>
</EXAMPLE>

<AUTHOR>Jaime Urzua</AUTHOR>
  
</MAN>
