View Single Post
Old 01-11-2019, 07:34 AM   #2
Kotozaurus
Human being with feelings
 
Join Date: Jan 2019
Posts: 2
Default

You can use boolean, for example

plugin constructor{

isHidden=true;
control->Hide(true);
}

void MyTest::OnParamChange(int paramIdx)
{
switch (paramIdx)
{
case kGain:
mGain = GetParam(paramIdx)->Value() / 100.;
if (mGain<=0)
{
control->Hide(false);
isHidden=false;
} else if(!isHidden)
{
control->Hide(true);
isHidden=true;
}
break;
Kotozaurus is offline   Reply With Quote