//emotive association tab
Tab emotive = controlP5gui.addTab(ctrlwindow, "Emotive Association");
//quadrant 2
quadrant2 = controlP5gui.addCheckBox("quadrant2"/*name*/, 50/*xpos*/, 50/*ypos*/);
quadrant2.setItemsPerRow(2);
quadrant2.setSpacingColumn(60);
quadrant2.setSpacingRow(20);
//quadrant2.moveTo(emotive);
quadrant2.setColorForeground(color(120));
quadrant2.setColorActive(color(255));
quadrant2.setColorLabel(color(255));
quadrant2.addItem("Agressive",0);
quadrant2.addItem("Edgy",1);
quadrant2.addItem("Moody",2);
quadrant2.addItem("Jumpy",3);
quadrant2.addItem("Restless",4);
Note that ctrlwindow is a new window and that works fine.
However if I uncomment the line:
//quadrant2.moveTo(emotive);
That is to say, I moved the checkbox to the emotive tab that is part of my floating window ctrlwindow, it doesn't show up. however if I don't move it (aka, i leave the comment), it shows up on the main sketch without a problem.
Things I've tried:
- Deleting other tabs in case I reached some kind of limit on the number of tabs
- added other UI elements such as buttons and sliders to this tab and other tabs as well without a problem
- successfully added this checkbox to the main sketch, i.e., not the floating window.
- activated all the checkboxes by default, and deactivated them.
Question:
Can anyone point me in the right direction as far as getting my checkbox on my floating window.
Note that I can, however, create buttons, and sliders in this tab without a problem. It is only with checkbox that I'm having a problem.
Thank you.