From: Ultima <ul...@ga...> - 1998-08-29 05:38:58
|
> int > my_slider_proc ( int msg, DIALOG *d, int c ) > { > static int old_value = -1; > > if ( msg == MSG_IDLE ) { > int value = d->d2; > > if ( value != old_value ) { > /* Position has changed. */ > adjust_other_things(value); > old_value = value; > } > > return D_O_K; > } > > return d_slider_proc(msg, d, c); > } > > That's untested, but hopefully it will get the idea across. There > are some downfalls to that approach. For instance, it's not > re-entrant; you can't have multiple instances of my_slider_proc(). Ok, this isn't directly related to the topic, but: what DOES non-reentrant mean??? In palantir docs they say all the libc functions are non-reentrant so you can't use them with multi-tasking enabled... but what DOES non-reentrant mean??!?!? THanks, |