Hi,
I need some help with ControlP5window control. I am trying to create a multi window application where a small control window is used to transform an image. I can add buttons and slider to the control window and change use it to transform the image added to the main window. However I am unable to add a drop box or list box control using the property
.setWindow(controlWindow)
I use the following from the example to create a controlWindow:
controlWindow = cp5.addControlWindow("controlP5window",100,100,400,200)
.hideCoordinates()
.setBackground(color(40))
;
to add a slider I use:
cp5.addSlider("PixelSize")
.setPosition(3,20)
.setSize(178,10)
.setRange(2,30) // values can range from big to small as well
.setValue(3)
.setNumberOfTickMarks(29)
.setSliderMode(Slider.FLEXIBLE)
.setWindow(controlWindow)
;
this property however does not work with a list box.
Thanks in advance.
1