Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling controls #20

Open
thomasgeissl opened this issue Jul 26, 2015 · 5 comments
Open

Disabling controls #20

thomasgeissl opened this issue Jul 26, 2015 · 5 comments
Labels

Comments

@thomasgeissl
Copy link
Contributor

Is it posible to disable controls?
I would like to make sliders and buttons/toggles just show values, but disable editing.

@thomasgeissl
Copy link
Contributor Author

I just saw ofxBaseGui::registerMouseEvents() and ofxBaseGui::unregisterMouseEvents().
And I tried rotary.unregisterMouseEvents() in exampleControls, but it did not work. I will have a closer look tomorrow.

@thomasgeissl
Copy link
Contributor Author

This is an ofxGui issue: http://forum.openframeworks.cc/t/ofxgui-disable-widgets/20304

I do not know what is the easiest way to implement this, without having to modify all classes.
I would add a member bool enabled, getter and setter to ofxBaseGui. In ofxBaseGui::mouseReleased and ofxBaseGui::mousePressed check if it is enabled and then call the actual handler.

@frauzufall
Copy link
Owner

We are working on some fundamental changes - see this PR openframeworks/openFrameworks#4150 I am trying to adapt this addon to the new strategy and there are some things we still need to figure out, this may take some time. I will keep this request in mind, it should not be too hard, as you said.

@thomasgeissl
Copy link
Contributor Author

Nice, it looks promising.
Let me know if I can do some testing or help somehow.

@frauzufall
Copy link
Owner

I will, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants