controlP5 depth
in
Contributed Library Questions
•
1 years ago
Hi All,
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!
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!
1