Displaying 1 result from an estimated 1 matches for "combo_choices".
2009 Feb 18
3
Validation and ComboBox
...2.8.9
(deb from the apt.wxwidgets.org repository), wxruby 1.9.10 gem.
David Peoples
-----
#!/usr/bin/env ruby
require ''wx''
class MyFrame < Wx::Frame
def initialize(title)
super(nil, :title => title, :size => [ 400, 300 ])
panel = Wx::Panel.new(self, -1)
@combo_choices = ["Apple", "Aardvark", "Banana", "Berry", "Canada",
"Cantaloupe", "Cauliflower", "Dummy"]
validator = Wx::TextValidator.new(Wx::FILTER_INCLUDE_LIST)
validator.includes = @combo_choices
combobox = Wx::ComboB...