Hi -
thank you again for the fantastic addon.
I have a question: is there a way to force a component to run its assigned callback?
For instance, in setup():
- I assign a callback function to a component
- then manually set a default value for the component
- then would like the component to run the callback for that value
i.e.:
gui = new ofxDatGui(0,0);
ofxDatGuiSlider* rpmSlider = gui->addSlider("rpm", 7.0,18.0);
rpmSlider->onSliderEvent(this, &ofApp::changeRpm);
rpmSlider->setValue(10.0);
rpmSlider->**[force event callback here?]**;
Thanks!
[Note: I'm using both lambda and normal callbacks so would be great to have a solution that works for both.]
Thanks!
Hi -
thank you again for the fantastic addon.
I have a question: is there a way to force a component to run its assigned callback?
For instance, in setup():
i.e.:
Thanks!
[Note: I'm using both lambda and normal callbacks so would be great to have a solution that works for both.]
Thanks!