View bound to multiple parameters

A user interface toolkit mainly for audio plug-ins (VST, AudioUnit, etc).
pongasoft
Posts: 43
Joined: Sun Mar 11, 2018 5:57 pm

View bound to multiple parameters

Postby 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: 201
Joined: Mon Jun 20, 2016 7:53 am

Re: View bound to multiple parameters

Postby 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


Return to “VSTGUI”

Who is online

Users browsing this forum: No registered users and 1 guest