Class | Ui::WxWidgets::Widgets::SingleColListCtrl |
In: |
ui/wx/widgets/propertiespane.rb
|
Parent: | Wx::ListCtrl |
# File ui/wx/widgets/propertiespane.rb, line 32 def initialize(parent, multiple, options, value) flags = Wx::LC_REPORT|Wx::LC_NO_HEADER if not multiple flags |= Wx::LC_SINGLE_SEL end super(parent, -1, Wx::DEFAULT_POSITION, Wx::Size.new(100, 100), flags) evt_size() {|event| onSize(event) } insert_column(0, 'Values') @options = options @options.each do |option| insert_item(get_item_count, option) if value.include?(option) set_item_state(get_item_count - 1, Wx::LIST_STATE_SELECTED, Wx::LIST_STATE_SELECTED) end end scroll_list(0, 0) end