MacArthur, Ian (SELEX GALILEO, UK) wrote:
> 
>> If I have a group of Buttons, all with type set to RADIO and 
>> when set to WHEN_CHANGED, and I click one of the buttons, 
>> should ALL the button callbacks get called (since all values change)?
>> FLTK 2
> 
> I haven't tested this under 2.x, but I'd imagine only 2 would change
> state at most - one going ON one going OFF, the others in the group
> aren't changing state?
> Or: Am I missing your point?

I probably stated it poorly - you are correct, but the problem I have is 
callbacks are only called for one value change, not both. Thus, ALL my 
radio button callbacks have to check all the other buttons to find which 
one got turned OFF and deal with it in order for the app to remain in 
sync with the gui, which isn't something I want to keep track of - it 
makes a royal pain in the butt to separate presentation from 
calculation. What I was hoping for was the button going OFF would also 
be called; then, for example, if one valve is opened, the previously 
open value would get closed without the opening value having to worry 
about that case. Maybe a RADIO_ACTIVE type in addition to RADIO?
Apologies for the convoluted wording.
Craig
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to