COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Prev Previous Post   Next Post Next
Old 01-10-2019, 05:57 AM   #1
StAN
Human being with feelings
 
Join Date: Oct 2014
Posts: 13
Default iPlug2 Issue: Hide control

Hello!

Please help. I need at a value of 0 show control, if not 0, hide control.
__________________________________________________ _______________________
YES:
void MyTest::OnParamChange(int paramIdx)
{
switch (paramIdx)
{
case kGain:
mGain = GetParam(paramIdx)->Value() / 100.;
if (mGain<=0) {
GetUI()->GetControl(hidehide)->Hide(false);
}
break;

default:
break;
}
}
__________________________________________________ _______________________
NO:
void MyTest::OnParamChange(int paramIdx)
{
switch (paramIdx)
{
case kGain:
mGain = GetParam(paramIdx)->Value() / 100.;
if (mGain<=0) {
GetUI()->GetControl(hidehide)->Hide(false);
} else{
GetUI()->GetControl(hidehide)->Hide(true);
}
break;

default:
break;
}
}
__________________________________________________ ____________________________
error:
void *Get() const { return m_size?m_buf:NULL; } // returns NULL if size is 0
Thread 1: EXC_BAD_ACCESS (code=1, address=0x34)
StAN is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:25 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.