WDL-OL SetTextFromPlug not working

DSP, Plugin and Host development discussion.
Post Reply New Topic
RELATED
PRODUCTS

Post

i have a simple knob which manage this parameter

Code: Select all

GetParam(oscillator_volume)->InitDouble("Volume", 0., 0., 10.0, 0.01, "%");
and a ITextControl

Code: Select all

IText text = IText(16, &COLOR_RED);

textControlValue = new ITextControl(this, IRECT(1115, 165, 200, 23), &text, "");
pGraphics->AttachControl(textControlValue);
In OnParamChange i writed this

Code: Select all

if(paramIdx == oscillator_volume) {
		char strValue[256];
		sprintf(strValue, " %f", GetParam(oscillator_volume)->Value());
		OutputDebugString(strValue);
		textControlValue->SetTextFromPlug(strValue);
}
I get the output with the right value, but it doesn't show in text, like if text didn't changed

Post

Now it's working, I've added

Code: Select all

GetGUI()->SetStrictDrawing(true);
after SetTextFromPlug, by the way I'm not sure this is the right thing to do, if somebody has some advices/corrections, please tell me

Post Reply

Return to “DSP and Plugin Development”