We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am using controlP5 library for creating GUI for my app. I have dropdownist and I want to add/remove items, set names of the items - i found solutions in examples. But I can't find how to get name of the choosen item (not its value!).
I tried this solution but this is not what i actually want because this solution implies item name corresponding to its value (i don't want to use value of item, I need its name to use as name of file).
Answers
It's not clear if you just want to get the name of the item as such or if you want to get the name of the item sending the event. Since you mention "chosen item" I assume it's the latter. However, for completeness here is an example of both:
Code Example
Thanks a lot for quick answer, it works perfectly!