Display a red bouncing ball in the progress bar.

Syntax
void Progress_PingPong(
void *p_block,
int inc
) ;
Parameters
p_block
Pointer to the progress window (as returned by Progress_Init).
inc
Add a red bouncing ball on top of the progress bar. The value of "inc" control the speed of the ball. It will go from one side of the progress bar to the other in "Dim_X", where Dim_X is the width (in pixels) of the bar. By default, the progress window start life with Dim_X = 400.
Return value
This function does not return a value.
Remarks
The PingPong function is used when progress is rather slow to help demonstrate that the process is still active. For example if you have a thread that take minutes to process a frame and the progress bar display the number of frames done, then the user will not see any progress for minutes at a time and may wander if the process is dead. Adding "Progress_PingPong" functions at strategic points in the computation may show the user otherwise.
Requirements
Header:
TomoVision_Util.hpp
TomoVision_Tools.hpp
progress.hpp
Library:
TomoVision_Util.lib
TomoVision_Tools.lib
progress.lib
Example
See also