frauzufall / ofxGuiExtended

ofParameter based GUI addon for openFrameworks; derived from the core OF ofxGui addon and ofxDOM.
MIT License
112 stars 29 forks source link

can a default bool toggle be converted to button? #71

Open moebiussurfing opened 5 years ago

moebiussurfing commented 5 years ago

when adding a group parameter with parameters bools to a container/group, they are added by default as toggles.

How can we change this added toggles to buttons?

If adding the parameter bools one by one, there's no problem, as we can define them as buttons when adding them.

I tried to define the button parameter as void like this, then is added to the group parameter: ofParameter<void> BPM_Tap_Tempo_button; but the listeners who get the changed params do not detects the button widget change..

void ofApp::Changed_Params(ofAbstractParameter& e) 
{
    string wid = e.getName();
    ofLogNotice() << "Changed_Params '" << wid << "': " << e;

    if (wid == "MY_BUTTON")
    {
        ofLogNotice() << "changed MY_BUTTON '";
    }
}