Closed GoogleCodeExporter closed 8 years ago
Example:
ListBox myList = controlP5.addListBox("myList", 100, 100, 100, 20);
myList.addItem(item1, 0);
myList.getItem(0).setColorBackground(color(255,0,0));
Original comment by matilla....@gmail.com
on 6 May 2012 at 5:15
[deleted comment]
this works for me with version 0.7.2 and above
import controlP5.*;
ControlP5 cp5;
void setup() {
size(300, 350);
cp5 = new ControlP5(this);
ListBox myList = cp5.addListBox("myList", 100, 100, 100, 120);
for(int i=0;i<100;i++) {
myList.addItem("item"+i, 0);
}
myList.getItem(0).setColorBackground(color(255,0,0));
}
void draw() {
background(0);
}
Original comment by soj...@gmail.com
on 15 May 2012 at 12:13
Original comment by soj...@gmail.com
on 18 May 2012 at 5:07
Original issue reported on code.google.com by
matilla....@gmail.com
on 6 May 2012 at 5:12