-
Notifications
You must be signed in to change notification settings - Fork 102
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
slider call SetFloatValue without calling onValueChanged #72
Comments
I recommend you add this functionality in to a fork. |
would be nice to implement the same thing for all the controls, perhaps this should be in Controls::Base? |
What? Why would all controls need to set a float value? Here is an example from Label.cpp :
I think a lot of code encapsulation is violated by Gwen's design. |
I mean all the controls should have a variable to ignore the callback |
I personally like the current way of just having a boolean on each function that may affect events that can be set to false to not do the event. |
Hi,
I need to set the float value for a slider without calling the onValueChanged handler which should only be called when the value is set by the mouse click on the slider.
I looked at the Slider source code and this seems not possible without changing the SetFloatValue signature to allow an extra parameter "ignoreEvent" or something like that.
This would be my approach, but I want to double check if I'm the only one that needs this feature and if there is a work around with the current api.
thanks.
The text was updated successfully, but these errors were encountered: