When having 2 (or more) combo boxes, if you open the menu of the 2nd one while the menu of the other one is open, you often get a flicker (behaviour depends the speed of the click and if the menu takes time to create/show up I think).
to reproduce (with code below to simply replace the Misc page of the tabs&widgets demo) :
- click on the first Combobox to open the menu
- click slowly on the second one (staying a bit with the button down helps seeing the flickering/understanding the bug)
.
struct MiscPage : public Component
{
MiscPage() : comboBox1 ("Combo1"), comboBox2 ("Combo2")
{
addAndMakeVisible (comboBox1);
addAndMakeVisible (comboBox2);
comboBox1.setBounds (10, 85, 200, 24);
comboBox2.setBounds (300, 85, 200, 24);
for (int i = 1; i < 10; ++i)
{
comboBox1.addItem ("item " + String (i), i);
comboBox2.addItem ("item " + String (i), i);
}
}
ComboBox comboBox1, comboBox2;
};