Way to force redraw/refresh of module GUI/elements
Posted: Mon Apr 01, 2019 7:13 am
I am looking at providing users with the option to select their own mid-point for time based knobs - specifically on Envelopes, I am allowing a range of 0-12secs and would like to offer mid points of 1sec (Moog-like), 3secs and 5secs (close to linear). I can make the change to the knobs BUT there does not seem to be a way to force them to redraw in their new position.
My first option was:
timeKnob.SetMidpointValue( value );
which worked in terms of the setting but did not redraw the knob until you moved the mouse over the knob.
I also tried:
timeKnob.SetMidpointValue( value );
timeKnob.SetValue( timeKnobGetValue() );
but this also does not redraw the knob.
On this module I am using GUIScreenRefresh for the LED indicators for the state of the envelope, so I would expect that this would have redrawn things correctly.
Is this a bug, or is there a way to force the refresh on either the individual element of the GUI or the whole module? And if not, is this something that could be added?
My first option was:
timeKnob.SetMidpointValue( value );
which worked in terms of the setting but did not redraw the knob until you moved the mouse over the knob.
I also tried:
timeKnob.SetMidpointValue( value );
timeKnob.SetValue( timeKnobGetValue() );
but this also does not redraw the knob.
On this module I am using GUIScreenRefresh for the LED indicators for the state of the envelope, so I would expect that this would have redrawn things correctly.
Is this a bug, or is there a way to force the refresh on either the individual element of the GUI or the whole module? And if not, is this something that could be added?