Looking for a ComboBox Effect

The effect that I’m looking for is one in which a Combobox appears as a simple Label displaying a string. However, when the user mouses over the “Label”, the dropdown control appears; at this point you can see that the control is indeed a ComboBox.

When the mouse exits the control, the dropdown control fades away and the CombBox looks like a Label control again.

I’m sure I can work this out on my own, but if JUCE already has a way of doing this, or if there is a tried and true technique I’d like to use it. No sense in re-inventing the wheel.

Maybe for starters try overriding Component::mouseEnter, and having it call ComboBox::showPopup() ?

For doing a fadeout see ComponentAnimator::fadeOut.

Thanks. I’ll look into that.