We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello world!
This is my first time posting on this forum, so if I make any mistakes as to formatting the question or other protocol, please feel free to correct me.
I am using controlp5 and I have a drop down list declared in my set up function like so:
SimilarityChoices = P5Controller.addDropdownList("SimChoices").setPosition((float)(width * .7), 450);
SimilarityChoices.addItem("Euclidian", 1);
SimilarityChoices.addItem("Manhattan", 2);
SimilarityChoices.setValue(2);
this.SimilarityChoices.enableCollapse();
this.SimilarityChoices.setItemHeight(20);
this.SimilarityChoices.actAsPulldownMenu(true);
My issue is that once I select something, the other choices never disappear! The arrow on the top of the list points up now indicating that the box is closed, but the other choices remain....is there something that I am missing in order to make these disappear?
Thank you in advance!
Answers
Wild guess: you don't start your draw() function with background() (a quite common mistake...)
That was it. Thanks a million