Update controls.rb

make general function for WX::ListBox and WX::Choice