search for: checked_item

Displaying 3 results from an estimated 3 matches for "checked_item".

Did you mean: checked_items
2007 Sep 20
3
Bug? in wxSugar enumerable_controls.rb
...e features to add a method for returning checked items'' index to the CheckListBox class : require ''wx_sugar/version'' require ''wx_sugar/wx_classes/control_with_items'' require ''wx_sugar/wx_classes/listctrl'' class Wx::CheckListBox def checked_items # use of find_all method from Enumerable items_index = find_all { |i| checked?(i) } end end The problem I had is that checked_items raises an exception. In fact, the find_all method uses the each method defined in ''wx_sugar/wx_classes/enumerable_controls.rb'' as follo...
2007 Oct 09
17
Crash when using item data with a CheckListBox
Hi, The following code works as expected with a list box. require "wx" class HelloWorld < Wx::App def on_init helloframe = Wx::Frame.new(nil, "Hello World") choices = ["one", "two", "three", "four", "five"] data = ["data1", "data2", "data3", "data4", "data5"]
2007 Oct 09
17
Crash when using item data with a CheckListBox
Hi, The following code works as expected with a list box. require "wx" class HelloWorld < Wx::App def on_init helloframe = Wx::Frame.new(nil, "Hello World") choices = ["one", "two", "three", "four", "five"] data = ["data1", "data2", "data3", "data4", "data5"]