# Looking for a ComboBox Effect

**URL:** <https://forum.juce.com/t/looking-for-a-combobox-effect/45112>\
**Category:** General JUCE discussion\
**Created:** [March 20, 2021, 7:24pm UTC](https://forum.juce.com/t/looking-for-a-combobox-effect/45112 "2021-03-20T19:24:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kalukaley](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/kalukaley/32/10667_2.png) [@kalukaley](https://forum.juce.com/u/kalukaley)\
**Post date:** [March 20, 2021, 7:24pm UTC](https://forum.juce.com/t/looking-for-a-combobox-effect/45112/1 "2021-03-20T19:24:33Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![refusesoftware](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/refusesoftware/32/20561_2.png) [@refusesoftware](https://forum.juce.com/u/refusesoftware)\
**Post date:** [March 20, 2021, 8:26pm UTC](https://forum.juce.com/t/looking-for-a-combobox-effect/45112/2 "2021-03-20T20:26:56Z")

</div>

Maybe for starters try overriding [`Component::mouseEnter`](https://docs.juce.com/master/classMouseListener.html#a479dc784712648193bdc236b2c34e8bd), and having it call `ComboBox::showPopup()` ?

For doing a fadeout see `ComponentAnimator::fadeOut`.

---

<div class="post-metadata">

**Author:** ![kalukaley](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/kalukaley/32/10667_2.png) [@kalukaley](https://forum.juce.com/u/kalukaley)\
**Post date:** [March 20, 2021, 8:56pm UTC](https://forum.juce.com/t/looking-for-a-combobox-effect/45112/3 "2021-03-20T20:56:15Z")

</div>

Thanks. I’ll look into that.
