change sliderlabel when using ControlP5
in
Contributed Library Questions
•
2 years ago
I am using ControlP5 sliders in addControlWindow. Can I change the label of Xhoogte_ into something else? It has to be named Xhoogte_, but I want it to show: Xhoogte instead of XHOOGTE_. So, I also want to get rid of the capitals. How can I do this?
Thanks in advance
import controlP5.*;
public ControlP5 control;
public ControlWindow w;
ControlP5 controlP5;
public void setParameters() {
}
public void makeControls() {
control = new ControlP5(this);
control.setColorActive(0xa0090909);
control.setColorBackground(0x20ffffff);
control.setColorForeground(0xb0aaaaaa);
control.setColorLabel(0xffffffff);
control.setColorValue(0xffffffff);
w = control.addControlWindow("Control", 10, 10, 350, 340);
w.hideCoordinates();
w.setTitle("Type Control");
int y = 0;
control.addSlider("Xhoogte_", -100, 100, anders, 10, y += 10, 256, 9).setWindow(w);
}
Thanks in advance
import controlP5.*;
public ControlP5 control;
public ControlWindow w;
ControlP5 controlP5;
public void setParameters() {
}
public void makeControls() {
control = new ControlP5(this);
control.setColorActive(0xa0090909);
control.setColorBackground(0x20ffffff);
control.setColorForeground(0xb0aaaaaa);
control.setColorLabel(0xffffffff);
control.setColorValue(0xffffffff);
w = control.addControlWindow("Control", 10, 10, 350, 340);
w.hideCoordinates();
w.setTitle("Type Control");
int y = 0;
control.addSlider("Xhoogte_", -100, 100, anders, 10, y += 10, 256, 9).setWindow(w);
}
1