Code: Select all
GetParam(oscillator_volume)->InitDouble("Volume", 0., 0., 10.0, 0.01, "%");
Code: Select all
IText text = IText(16, &COLOR_RED);
textControlValue = new ITextControl(this, IRECT(1115, 165, 200, 23), &text, "");
pGraphics->AttachControl(textControlValue);
Code: Select all
if(paramIdx == oscillator_volume) {
char strValue[256];
sprintf(strValue, " %f", GetParam(oscillator_volume)->Value());
OutputDebugString(strValue);
textControlValue->SetTextFromPlug(strValue);
}