Combobox


#1

Hi

I am getting confused with ComboBox listener.
my code is like this

ComboBox* my_combo;

void comboBoxChanged (ComboBox *comboBoxThatHasChanged);

i have a component … i added combobox and various items in it…
But then what to give in argument of listener…

my_combo->addListener(???);


#2

my_combo->addListener(this);


#3

class MyComponent : public Component, public ComboBoxListener
{
// …
private:
ComboBox* my_combo;
// …
};