# Using a ComboBox in Audio Plugin

**URL:** <https://forum.juce.com/t/using-a-combobox-in-audio-plugin/916>\
**Category:** General JUCE discussion\
**Created:** [June 28, 2006, 2:48pm UTC](https://forum.juce.com/t/using-a-combobox-in-audio-plugin/916 "2006-06-28T14:48:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Coops](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@Coops](https://forum.juce.com/u/Coops)\
**Post date:** [June 28, 2006, 2:48pm UTC](https://forum.juce.com/t/using-a-combobox-in-audio-plugin/916/1 "2006-06-28T14:48:52Z")

</div>

Okay I’m a JUCE noob so maybe I’m being a bit slow here but how do I use a combobox in an audio plugin and control a parameter with it since it doesn’t appear to have an addChangeListener function?

I’m trying to port a couple of C++ plugins I made for myself to JUCE so I can export them to my Mac and the slider in the example plugin makes sense to me but I can’t see how to use the example to connect up a combobox. Is there any example code around or would anybody like to add one into the example plugin and hook it up to a parameter?

Thanks for all your help, JUCE looks fantastic and I’m looking forward to getting to grips with it properly 🙂

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [June 28, 2006, 2:52pm UTC](https://forum.juce.com/t/using-a-combobox-in-audio-plugin/916/2 "2006-06-28T14:52:27Z")

</div>

It’s actually got an addListener method to add a ComboBoxListener - check out the juce demo code or the Jucer code for examples of combo boxes in action…

---

<div class="post-metadata">

**Author:** ![Coops](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@Coops](https://forum.juce.com/u/Coops)\
**Post date:** [June 28, 2006, 3:01pm UTC](https://forum.juce.com/t/using-a-combobox-in-audio-plugin/916/3 "2006-06-28T15:01:39Z")

</div>

> [@jules](#):
>
> It’s actually got an addListener method to add a ComboBoxListener - check out the juce demo code or the Jucer code for examples of combo boxes in action…

Thank you for the speedy reply I will have another look through the demo code 😃

Might be nice for other people who are new to JUCE to have a combobox in the example plugin since they are used pretty often and are generally a bit more complex at first than a slider.

Thanks again 🙂

---

<div class="post-metadata">

**Author:** ![Coops](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@Coops](https://forum.juce.com/u/Coops)\
**Post date:** [June 28, 2006, 4:06pm UTC](https://forum.juce.com/t/using-a-combobox-in-audio-plugin/916/4 "2006-06-28T16:06:01Z")

</div>

Aha just updated to the latest version of JUCE and and discovered the ComboBoxListener. Everything works fine now. JUCE rocks , I’m never going to go near an ugly MFC widget ever again 8)

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 12, 2017, 10:01am UTC](https://forum.juce.com/t/using-a-combobox-in-audio-plugin/916/5 "2017-05-12T10:01:28Z")

</div>

Closed on May 12, 2017, 10:01am UTC


