Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Error - function does not exist - controlP5

$
0
0

///////////////////////////////////////// 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.


Viewing all articles
Browse latest Browse all 2896

Trending Articles