The only way I could figure out to set idle callback to "null" in order to prevent consuming CPU is by using
unregisterCallback ("IDLE_ACTION")
However, once that happens you lose the ability to add your own idle callbacks like:
Application.idle += &application_idle;
Only way I can see to get it back going is to register IDLE_ACTION callback again, but by that point use of Application.idle becomes redundant, you need to use the IupSetFunction calls directly. Is there a better way?
The only way I could figure out to set idle callback to "null" in order to prevent consuming CPU is by using
unregisterCallback ("IDLE_ACTION")
However, once that happens you lose the ability to add your own idle callbacks like:
Application.idle += &application_idle;
Only way I can see to get it back going is to register IDLE_ACTION callback again, but by that point use of Application.idle becomes redundant, you need to use the IupSetFunction calls directly. Is there a better way?