View Single Post
Old 09-06-2020, 08:24 AM   #16
Human being with feelings
Join Date: Apr 2018
Posts: 354

Yes, my next question/thought was how to update all display control values and then redraw ONCE at the end? AFAIK, SetControlFromPlug() triggers a redraw every time it is called (a dozen times per block in this case). I thought perhaps the total GUI update was just taking too long - however I tried forcing a total redraw of everything at the end of the GUI block using SetAllControlsDirty() and it works! So apparently it's NOT taking too long and something else is causing the problem (i.e., something is "cleaning" my ISwitchControl before it has been redrawn).

Will take a look at what you've presented here. Thank you.

Also, is there ANY other means to update control values besides SetControlFromPlug()? With parameters you can directly set/get the mValue - any way to do that with controls?

Last edited by Nonlinear; 09-06-2020 at 08:52 AM.
Nonlinear is offline   Reply With Quote