ControlP5 - Setting the text of a label
in
Contributed Library Questions
•
3 years ago
I am creating some labels in a for loop
controlP5.addTextlabel("label"+i+j,table[j][i],10,10);
But, how can I reference these, to change the labels again?
I have tried
controlP5.controller("label"+i+j).setLabel("Text");
and
controlP5.controller("label"+i+j).setValueLabel("Text");
but neither work.
There is also a controller.stringValue()
but this doesnt take an argument, so not sure how to use!
Many thanks,
RD
controlP5.addTextlabel("label"+i+j,table[j][i],10,10);
But, how can I reference these, to change the labels again?
I have tried
controlP5.controller("label"+i+j).setLabel("Text");
and
controlP5.controller("label"+i+j).setValueLabel("Text");
but neither work.
There is also a controller.stringValue()
but this doesnt take an argument, so not sure how to use!
Many thanks,
RD
1