[Iup-users] Text action after change?
Brought to you by:
scuri
From: Jeremy C. <je...@co...> - 2009-08-26 23:48:51
|
Is there a way to setup a callback after the text has changed and been accepted for a text widget? I have about 10 text widgets involved in a calculation and I'd like to be able to do something to the effect of: function variable_updated(Ihandle h) -- do computation, update result return IUP_DEFAULT end function iup:set_callback(text1, "TEXT_UPDATED", variable_update) iup:set_callback(text2, "TEXT_UPDATED", variable_update) iup:set_callback(text3, "TEXT_UPDATED", variable_update) iup:set_callback(text4, "TEXT_UPDATED", variable_update) ... etc ... I just don't see what I would call. ACTION is before the text has been updated. I know it passes the update value, but in my generic "updated" function, I don't really know what control it would belong to. -- Jeremy Cowgar <je...@co...> |