olilarkin / wdl-ol

Enhanced version of Cockos' iPlug - A simple-to-use C++ framework for developing cross platform audio plugins and targeting multiple plugin APIs with the same code. VST / VST3 / Audiounit / RTAS / AAX (Native) formats supported. NOTE: THIS IS OBSOLETE, PLEASE SEE IPLUG2:
https://github.com/iplug2
935 stars 187 forks source link

IControl text entry prompts bug #9

Open pylorca opened 12 years ago

pylorca commented 12 years ago

there is a bug in the IConttrol prompt (right click on control) , this does not show negative values. works well with positive values.

this happens on windows, OSX not confirmed yet

pylorca commented 12 years ago

The code:

GetParam(kGain)->InitDouble("Gain", 0.0, -18.0, 18.0, 0.001, "dB");

IBitmap bitmap = pGraphics->LoadIBitmap(BIG_KNOB_ID, BIG_KNOB_FN, 101);
pGainControl = new IKnobMultiControl(this, kGain_X, kGain_Y, kGain, &bitmap,kVertical,DEFAULT_GEARING);
pGraphics->AttachControl(pGainControl);
pGainControl->DisablePrompt(false);
pylorca commented 12 years ago

I've noticed that:

GetParam(kGain)->InitDouble("Gain", 0.0, -18.0, 18.0, 0.01, "dB"); // BUG
GetParam(kGain)->InitDouble("Gain", 0.0, -18.0, 18.0, 0.1, "dB"); // no BUG
pylorca commented 12 years ago

I found a temporary solution:

increase PARAM_EDIT_W size on IControl.cpp