Thread: AAX and knobs
View Single Post
Old 04-17-2017, 02:48 PM   #13
Tunca
Human being with feelings
 
Join Date: Apr 2016
Posts: 264
Default

Quote:
Originally Posted by earlevel View Post
How are you creating your control and attaching it? Please show your code.
enum ELayout

Code:
 
 kRatX = 355,
 kRatY = 26,
 kKnob3Frames = 4,
IPlugInstanceInfo

Code:
GetParam(kRat)->InitEnum("Ratio", 0, 3);
Code:
const char *ratioNames[] = { "2", "4", "10", "20"};
for (int idx = 0; idx < 3; ++idx)
  GetParam(kRat)->SetDisplayText(idx, ratioNames[idx]);
OnParamChange

Code:
IBitmap knob = pGraphics->LoadIBitmap(ratioResID, ratioResFile, 4);
pGraphics->AttachControl(new IKnobMultiControl(this, ratioResLoc->h, ratioResLoc->v, kRatio, &knob));
But getting error with OnParamChange section.Not accepting 'ratio' name.
Tunca is offline   Reply With Quote