daniel
March 15, 2023, 1:06pm
7
IMHO it would suffice to have the ability to query a parameter, if a gesture is in progress.
I asked about that 9 months ago, but realised it wasn’t a FR.
You can vote now here:
Can we please have isPerformingGesture as actual feature, not just as debbuging help?
In my GUI engine PluginGuiMagic I implement a RadioButtonManager, that acts parallel to a ParameterAttachment.
The ParameterAttachment will update the button, which will react with setToggleState. This triggers a sendClickedMessage (maybe here is the actual mistake), which will propagate into my RadioGroupManager. But now there is already a gesture happening.
I would be able to simply ignore button clicks wh…
Then you could simply do:
auto* myp = state.getParameter("mySliderParam");
if (!myp->isPerformingGesture())
{
myp->beginChangeGesture();
// ...
}
1 Like