Page 1 of 1

View bound to multiple parameters

Posted: Sun Jun 03, 2018 3:54 pm
by pongasoft
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

Re: View bound to multiple parameters

Posted: Mon Jun 04, 2018 7:42 am
by Arne Scheffler
Hi,
I think the best approach is to use a sub controller for the second parameter.

Cheers,
Arne