Re: XForms: idle callback

Robert S. Mallozzi (
Wed, 4 Mar 1998 09:52:30 -0600 (CST)

# To subscribers of the xforms list from "Robert S. Mallozzi" <> :

On 4 Mar, Richard BONNAIRE wrote:
> # To subscribers of the xforms list from (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

_________________________________________________ To unsubscribe, send the message "unsubscribe" to or see XForms Home Page: List Archive: