ControlP5 Dropdown setValue
in
Contributed Library Questions
•
1 year ago
I'm using the ControlP5 library and am struggling to set the selected value of the dropdown programatically? I have failed to find anything in the documentation, but this seems like it should be possible.
Basically, I am using a dropdown to select from a list of predefined states for my program. When the program first starts, I want the dropdown to show the intial state. All the other controls I am using have a setValue or equivalent that I can use but seemingly not the dropdown list which defaults to having nothing selected.
Thanks
Phil
Basically, I am using a dropdown to select from a list of predefined states for my program. When the program first starts, I want the dropdown to show the intial state. All the other controls I am using have a setValue or equivalent that I can use but seemingly not the dropdown list which defaults to having nothing selected.
Thanks
Phil
1