View bound to multiple parameters

A user interface toolkit mainly for audio plug-ins (VST, AudioUnit, etc).
Post Reply
User avatar
pongasoft
Posts: 88
Joined: Sun Mar 11, 2018 5:57 pm
Location: Las Vegas, USA
Contact:

View bound to multiple parameters

Post by pongasoft » Sun Jun 03, 2018 3:54 pm

I have a view (a CTextLabel) which needs to be controlled (= bound) to 2 parameters:

* the first parameter is the value that needs to be displayed (in this case a volume level in dB)
* the 2nd parameter is the color of the text (red/orange/green)

as seen in this screenshot
Screen Shot 2018-06-03 at 08.51.56.png
How would I go about implementing something like this?

Thanks
Yan
You do not have the required permissions to view the files attached to this post.

Arne Scheffler
Posts: 303
Joined: Mon Jun 20, 2016 7:53 am

Re: View bound to multiple parameters

Post by Arne Scheffler » Mon Jun 04, 2018 7:42 am

Hi,
I think the best approach is to use a sub controller for the second parameter.

Cheers,
Arne

Post Reply