Redraw Policy

A user interface toolkit mainly for audio plug-ins (VST, AudioUnit, etc).
Post Reply
SquarePushed
Posts: 15
Joined: Mon May 11, 2020 7:12 pm

Redraw Policy

Post 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!

Arne Scheffler
Posts: 353
Joined: Mon Jun 20, 2016 7:53 am

Re: Redraw Policy

Post 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?

SquarePushed
Posts: 15
Joined: Mon May 11, 2020 7:12 pm

Re: Redraw Policy

Post 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.

SquarePushed
Posts: 15
Joined: Mon May 11, 2020 7:12 pm

Re: Redraw Policy

Post 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.

Arne Scheffler
Posts: 353
Joined: Mon Jun 20, 2016 7:53 am

Re: Redraw Policy

Post 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

SquarePushed
Posts: 15
Joined: Mon May 11, 2020 7:12 pm

Re: Redraw Policy

Post by SquarePushed »

Hi Arne,

Thx for your support, much appreciated! 😊

BR

Post Reply