reInitialization of controlP5
in
Contributed Library Questions
•
2 years ago
Hello,
I have problems regarding updateing a view. I want to open a new file or revision and I'm setting up controlP5 the same way as it's done the first time, but it somehow fails. I can't open or close a ControlGroup and everything seems a bit messed up :-/
I'm doing
mControlP5.show();
mControlP5.draw();
at the end of draw(). Please let me know if you need further information...
setup is done via:
regards,
Johannes
I have problems regarding updateing a view. I want to open a new file or revision and I'm setting up controlP5 the same way as it's done the first time, but it somehow fails. I can't open or close a ControlGroup and everything seems a bit messed up :-/
I'm doing
mControlP5.show();
mControlP5.draw();
at the end of draw(). Please let me know if you need further information...
setup is done via:
- mControlP5 = new ControlP5(mParent);
mControlP5.addListener(this);
mControlP5.setColorActive(activeColor); - ...
- final ControlGroup ctrl = mControlP5.addGroup("menu", 15, 25, 35);
ctrl.setColorLabel(mParent.color(255));
ctrl.close();
int i = 0;
for (final Slider slider : mSliders) {
slider.setGroup(ctrl);
slider.setId(i);
slider.captionLabel().toUpperCase(true);
slider.captionLabel().style().padding(4, 0, 1, 3);
slider.captionLabel().style().marginTop = -4;
slider.captionLabel().style().marginLeft = 0;
slider.captionLabel().style().marginRight = -14;
slider.captionLabel().setColorBackground(0x99ffffff);
slider.plugTo(this);
i++;
} - ...
regards,
Johannes
1