View Single Post
Old 04-11-2018, 10:13 AM   #1
mrlimbic
Human being with feelings
 
mrlimbic's Avatar
 
Join Date: Nov 2009
Location: UK
Posts: 669
Default Two controls for same parameter

I'm a newbie to WDL-OL..

I've just tried hooking up a knoblinecontrol to a captioncontrol to show it's value, giving them both the same parameter id, but they do not work together as I expected.

Also the caption doesn't pop up a prompt when double clicked as I expected, even though I enabled prompt.

What am I doing wrong?

Code:
  //Attach IKnobLineControl
  IKnobLineControl* lineControl = new IKnobLineControl(this, IRECT(0, 300, 50, 350), kPanner1 + kX, &lineColor);
  lineControl->DisablePrompt(false);
  pGraphics->AttachControl(lineControl);

  //Attach ICaptionControl
  IText text = IText(14);
  ICaptionControl* captionControl = new ICaptionControl(this, IRECT(0, 350, 50, 400), kPanner1 + kX, &text);
  pGraphics->AttachControl(captionControl);
__________________
Vordio - Post Production Toolkit
http://vordio.net
mrlimbic is offline   Reply With Quote