I’m trying to change the values of other toggles in a set to mimic radio buttons (only one selected).
I can’t seem to find any public methods for setting control values programmatically.
something like
myToggle.setValue(false);
I get an error that setValue is protected. What’s the proper method? I can’t find anything suitable in the documentation.
Ok I’m still working through this. Have a couple questions about pointers to ofParameter.
void ofApp::sndTogglePressed(const void* sender, bool &value) {
ofParameter* x = (ofParameter*) sender;
ofParameter val = sender;
Why doesnt val.getName() work? I’m trying to get the dot notation to work just for curiosity sake. But the only way a name prints is to just cast the pointer and use arrow notation.