basic controlP5 textField question
in
Contributed Library Questions
•
1 years ago
Well, I've searched but i can't understand de difference between this two textFields in controlP5 examples. Why one is declared as MytextField and the other is called using a String name as a parameter? What's the difference?
code from the example
- String textValue = "";
- Textfield myTextfield;
- void setup() {
- size(400,400);
- frameRate(25);
- controlP5 = new ControlP5(this);
- myTextfield = controlP5.addTextfield("texting",100,160,200,20);
- myTextfield.setFocus(true);
- controlP5.addTextfield("textValue",100,200,200,20);
- }
1