Quote:
Originally Posted by chaz13
it didn't update the actual image being displayed the for knob not in operation. How can I tell it to re-draw?
Thanks!
|
To re-draw, I think you have to do something like:
Code:
control->SetValueFromPlug(mThresh1);
where control is whatever IControl is associated with the knob in question.
I'm not sure though if there's a better way of accessing that particular control than doing something like this:
Code:
IControl* control = GetGUI()->GetControl(i);
where i is the index of the control. And if I'm not mistaken, the control index is determined by what order the controls were initially declared. I'm not sure if you can get the control using the paramIdx, other than looping through all controls until you find the one that matches... though that would be very useful if there is a way to do that.
Also, hello to everyone (first post, woohoo!) You all have helped me a lot in my own plugin development, so thank you all immensely!