I've been using the controlP5 library for a while now, and am a great fan of it.
As I'm working on a large user interface I have a growing number of elements from controlP5.
This morning, when I added an additional dropdownlist and textfield, I received the following error at runtime:
"Exception in thread "Animation Thread" java.lang.RuntimeException: pushMatrix() cannot use push more than 32 times"
As my code is terribly long, I have not included it here.
However, I've played around a bit by commenting out some items and noticed that after a certain amount of controlP5 objects, this error is thrown. I'm assuming there is a pushMatrix() function that is not terminated with a popMatrix in the library.
I have been using the controlP5 library for a little while now, and I think it is a great addition to Processing.
However, I have stumbled upon a problem that I haven't been able to deal with yet.
I have placed two dropdownlists above each other. Whenever I click the top dropdownlist, it disappears behind the lower one. This happens because I initiate the upper one first and the lower one second. When I switch this is ok.
The problem is that I make the position of the second dropdownlist dependent on the first dropdownlist, so I have to initialize this first. The question is:
Is there a way in controlP5 to set the order in which objects are drawn?
This would make it possible to place a clicked element always on top.
Any help/advice or even answers are greatly appreciated!