///////////////////////////////////////// Imports///////////////////////////////
import org.gicentre.utils.gui.TextPopup; // for warning window
import org.gicentre.utils.stat.*; // For chart classes.
//import org.gicentre.utils.multisketch.*; // for integration window
import controlP5.*;
import processing.serial.*;
import java.io.*; // this is needed for BufferedWriter
import java.util.Arrays;
And problems:
mode = cp5.addDropdownList("list-2", 260, 30, 80, 184) // last digit was 124
.setBackgroundColor(color(200))
.setItemHeight(20)
.setBarHeight(20)
.setColorBackground(color(60))
.setColorActive(color(255, 128))
.setUpdate(true)
.setCaptionLabel("Select Mode")
.setId(1)
.setScrollbarWidth(10);
Error - The function setScrollbarWidth(int) does not exist.
public void controlEvent(ControlEvent theEvent) {
if (theEvent.isGroup())
{
int Id = theEvent.getId();
if (Id == 1){
float Mod = theEvent.getGroup().getValue(); // group() and value() are both problems
int Modi = int(Mod);
iMod = int(Mod);
String [][] Modetype = mode.getListBoxItems();
//Modetorun = Modetype[Modi][Modi];
runMode = Modetype[Modi][0]; // replaced earlier line in newer sketch?
Modesel = true;
println("mode to run = "+runMode);
}
if (theEvent.getName().equals("list-3")) {
float ovr = theEvent.getGroup().getValue();
overlay = int(ovr);
}
}
}
Error - The function getListBoxItems() does not exist.
I'm new to Processing and have no idea how to fix it. This is a code downloaded from https://github.com/SmokyMountainScientific/WheeStat6_0d Processing examples run normally.