The PROCESS object

This object is used for displaying the process status when copying files etc. See also the messagebox functions msgprocess(), show_process() and hide_process().


process_init ()
     Description:
       Initialize a new process object.

     Syntax:
       p_process  process_init ( p_process o, t_rect r, l_dword size,
                                 l_dword *where );

     Parameters:
       o           Allocated memory to store the object in.
       r           Rectangle to display the object in.
       size        Size of the process, e.g. 100 if displaying percentage.
       where       Pointer to a l_dword variable that contains the current
                   position in the process.

     Returns:
       The new process object.




Example:


     l_dword size = 100000;
     l_dword pos  = 0;

     p_process x = process_init(malloc(sizeof(t_process)),
                                r,
                                size,
                                &pos);

     OBJECT(desktop)->insert(OBJECT(desktop), OBJECT(x));

     _while ( pos++ < size );     /* _while is a multitasking "while" keyword. */