IDEA: nullable button radio groups
-
@David-Healey Do you think the
Content.setRadioGroupNullable()call is the right way to go about it?Since the radio group itself isn't exposed in any other way, I thought a high-level setting would be best.
-
@dannytaurus Yeah it makes sense, rather than having to apply it to individual buttons. I don't know if nullable is the most intuitive word for the behaviour.
-
@David-Healey Good point. Any suggestions?
-
@dannytaurus toggleable... lol don't use that. I can't think of anything better at the moment. Maybe someone else will chime in a with an idea.
-
@dannytaurus That's usually made on the scripting level so having this at a C++ level seems a good idea

setExclusive
allowDeselect(my preferred one)
setDeselectable
setExclusiveZeroAllowed -
-
@ustk @David-Healey Yep,
allowDeselectis good, but not for the whole function name surely?Content.allowDeselect()?I should refer to radio group, radio button, or similar, right?
-
@dannytaurus
setAllowRadioGroupDeselect()? -
@David-Healey said in IDEA: nullable button radio groups:
@dannytaurus
setAllowRadioGroupDeselect()?yep much more better
-
@ustk said in IDEA: nullable button radio groups:
@David-Healey said in IDEA: nullable button radio groups:
@dannytaurus
setAllowRadioGroupDeselect()?yep much more better


-
@ustk @David-Healey Actually, maybe the 'Allow' is redundant, since we call it with true or false.
Maybe just
setRadioGroupDeselect, like this:Content.setRadioGroupDeselect(1, true); // turn it on Content.setRadioGroupDeselect(1, false); // turn it offThoughts?
-
@dannytaurus I think the allow is good because we are saying "allow buttons in this group to be deselected"
Whereas without it we are saying "set buttons in this group to be deselected" which has a different meaning.
Also there are other similarly named functions

-
@David-Healey Nice. I'll update the name now

-
@David-Healey @ustk Function name changed in PR.