Synopsis
void EVflush_events();
Description
EVFlush_events flushes out pending window system expose events. It is particularly useful on UNIX systems since the Motif library uses window system expose events to refresh widgets after widget attributes have been changed. You may need to call this routine after you have performed an OMpop_ctx call that triggered a widget's update function. Even though the widget's update function was called, the display of the widget may not have been updated until all pending expose events are handled.
Example
In this example, the OMpush_ctx and OMpop_ctx routines bracket an operation which changes a slider's value. The slider itself is not updated until after the EVflush_events call.
OMpush_ctx(my_obj_id, 0, 0, 0);
OMset_name_real_val(slider_id, OMstr_to_name("value"), 3.0);
OMpop_ctx(my_obj_id);
EVflush_events();
See also
See OMpush_ctx and OMpop_ctx