constructor is undefined error
in
Programming Questions
•
1 year ago
Hi guys,
I'm having some trouble with a class of mine. I'm trying to create a class to create controlP5 text areas. I'm getting a constructor is undefined error.
I've had a look at this and have tried to implement that but I'm guessing I've messed with it. I've been stuck on this for hours now and it's driving me mad. Any ideas?
Class:
Call:
I'm having some trouble with a class of mine. I'm trying to create a class to create controlP5 text areas. I'm getting a constructor is undefined error.
I've had a look at this and have tried to implement that but I'm guessing I've messed with it. I've been stuck on this for hours now and it's driving me mad. Any ideas?
Class:
- class TextArea{
- Textarea area;
- String name, data, tabName;
- int x,y,width,height;
- TextArea(PApplet pa, Textarea _area, String _name, String _data, String _tabName, int _x, int _y, int _width, int _height){
- area = _area;
- name = _name;
- data = _data;
- x = _x;
- y = _y;
- width = _width;
- height = _height;
- }
- void display(){
- area = cp5.addTextarea(name,data,x,y,width,height);
- area.moveTo(tabName);
- area.setColor(0x00000000);
- }
- }
Call:
- TextArea testText = new TextArea(this,testText,"testTextArea","This is the test text","animal",10,50,100,100);
1