Page 1 of 1

Redraw Policy

Posted: Tue May 19, 2020 6:45 am
by SquarePushed
Hi,

Sorry for bothering you with presumably old and already discussed topics, but I haven't found any solution (in this forum, the internet) that works for me:

The following is also a problem of the again sdk-example by Steinberg: Entering wrong (out-of-range) values in the gain text field are not always corrected in the GUI.

I have a very similar and simple setup: I use the new WYSIWYG-editor and I create an own view with the ViewCreatorAdapter, derived from the CTextEditor. Nothing fancy. This view is tagged with a the Steinberg-given RangeParameter that does (on the basis of minPlain and maxPlain, the parameters of the RangeParameter-constructor) a range-check. If I enter out-of-range values in the GUI, the adapted / corrected values are not reflected in my view. Strangely, a correction only happens the first time...

Thanks for your help!

Re: Redraw Policy

Posted: Tue May 19, 2020 4:08 pm
by Arne Scheffler
Hi,
I'm not able to reproduce the out-of-range issue with again. Can you write down a step by step instruction what needs to be done to get this behaviour?

Re: Redraw Policy

Posted: Tue May 19, 2020 7:44 pm
by SquarePushed
Hi,

just enter -500 in the numerical value field and press enter, and then do this again. The first time, the value is corrected (to -oo) and the second time (and further times) nothing happens.

Re: Redraw Policy

Posted: Wed May 20, 2020 7:51 pm
by SquarePushed
Adapting the method bool Parameter::setNormalized (ParamValue normValue) solved it (added a changed()) but I am not sure whether this is really the best method to handle this issue.

Re: Redraw Policy

Posted: Thu May 28, 2020 5:48 pm
by Arne Scheffler
Hi,
I was able to reproduce this issue and we will have a fix in the next version.

Thanks for reporting,
Arne

Re: Redraw Policy

Posted: Sun May 31, 2020 10:54 pm
by SquarePushed
Hi Arne,

Thx for your support, much appreciated! 😊

BR