Lua Code:
info.func = self.click --self is the dropdown menu
Under your dropdown creation you just define your click function.
Lua Code:
--dropdownmenu
local dropdownMenu = createBasicDropDownMenu()
dropdownMenu.click = function(self)
PVPSound_OptionsSetAddonLanguageOne(self.value)
end
I'm doing it this way for the oUF_Diablo config panel:
http://code.google.com/p/rothui/sour.../panel.lua#382