Re: XForms: idle callback

Robert S. Mallozzi (mallors@crazyhorse.msfc.nasa.gov)
Wed, 4 Mar 1998 09:52:30 -0600 (CST)

# To subscribers of the xforms list from "Robert S. Mallozzi" <mallors@crazyhorse.msfc.nasa.gov> :

On 4 Mar, Richard BONNAIRE wrote:
> # To subscribers of the xforms list from bonnaire@ccr.jussieu.fr (Richard BONNAIRE) :
>
> Hello
> In an application where I want some animation to happen I register
> the algorithm for the movement of a particle as a idle_callback :
> fl_set_idle_callback(FL_APPEVENT_CB(boucle_simulation),NULL);
> It works fine no problem. To stop the animation without leaving the animation
> I have found only one solution : to register an idle callback with NULL
> as function parameter :
> fl_set_idle_callback(NULL,NULL);//arrete la simulation
> It works without trouble. Is this the right solution or is there another
> and more clean way to un register an idle callback ?

>From the manual:

fl_set_idle_callback(FL_APPEVENT_CB callback,
void *user_data)
.
.
.
To remove the idle callback, use fl_set_idle_callback()
with callback set to 0

-- 
Robert S. Mallozzi
http://cspar.uah.edu/~mallozzir/

_________________________________________________ To unsubscribe, send the message "unsubscribe" to xforms-request@bob.usuf2.usuhs.mil or see http://bob.usuf2.usuhs.mil/mailserv/xforms.html XForms Home Page: http://bloch.phys.uwm.edu/xforms List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/