XForms: idle callback

Richard BONNAIRE (bonnaire@ccr.jussieu.fr)
Wed, 4 Mar 1998 15:41:53 +0100 (NFT)

# 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 ?

Thanks for your advice,
Best regards
Richard

-- 
===============================================================================
Richard Bonnaire             Universite Pierre et Marie CURIE
                             IfsI
                             Tour 12 casier 225
bonnaire@ccr.jussieu.fr      4 place Jussieu
                             75252 Paris cedex 05 France
                             Tel : (33) 01 44 27 38 89
                             Fax : (33) 01 44 27 48 37
===============================================================================
_________________________________________________
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/