Displaying 11 results from an estimated 11 matches for "evt_listbox".
2006 Nov 23
0
[754] trunk/wxruby2/samples/bigdemo: Rubified samples and added in missing client data sample code
...t; Wx::StaticText.new(self, -1, "Select one:", Wx::Point.new(15,50), Wx::Size.new(65,18))
</span><span class="cx"> @lb1 = Wx::ListBox.new(self, 60, Wx::Point.new(80,50), Wx::Size.new(80,120), sampleList, Wx::LB_SINGLE)
</span><del>- evt_listbox(@lb1.get_id()) {|event| on_evt_listbox(event)}
- evt_listbox_dclick(@lb1.get_id()) {|event| on_evt_listbox_dclick(event)}
</del><ins>+ evt_listbox(@lb1.get_id) {|event| on_evt_listbox(event)}
+ evt_listbox_dclick(@lb1.get_id) {|event| on_evt_listbox_dclick(event)}
&...
2007 Sep 20
7
Troubles with ListBox and CheckListBox events
Hi all,
Here is an excerpt of code (with the new syntax from upcoming wxRuby 1.9.2) :
evt_checklistbox(my_checklist, :on_checklistbox)
evt_listbox(my_checklist, :on_listbox)
evt_listbox(my_list, :on_listbox)
def on_checklistbox(event)
checklist = event.event_object
# puts "listbox - event : item[#{event.int}] checked : #{event.checked?}"
puts "listbox - event : item[#{event.selection}] checked :
#{checklist.ch...
2006 Aug 25
1
wxCheckListBox.rbw patch file
This fixes truncated text on the CheckListBox sample in bigdemo.
Roy
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2007 Oct 23
3
CheckListBox : delete method bug !
...def delete n
super
end
end
Wx::App.run do
helloframe = Wx::Frame.new(nil, :title => "CheckListBox Sample") do |frame|
lb = Wx::CheckListBox.new(frame) do |c|
# use of append within the initializer
0.upto(3) { |i| c.append "item#{i+1}" }
end
evt_listbox lb.wx_id do |event|
lb.delete event.index
end
end
helloframe.show
end
---------------
If I run the application, and if I select the "item2", this item is
deleted as expected.
But afterwards, "item4" cannot be checked.
If I just remove/comment the delete method...
2007 May 29
0
[1035] trunk/wxruby2/swig/classes/EvtHandler.i: Removed a heap of redundant stuff that''s been #if 0''d for a while
..., VALUE self)
-{
- return internal_evt_with_id(argc, argv, self, wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING);
-}
-
-static VALUE evt_listbook_page_changed(int argc, VALUE *argv, VALUE self)
-{
- return internal_evt_with_id(argc, argv, self, wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED);
-}
-
-static VALUE evt_listbox(int argc, VALUE *argv, VALUE self)
-{
- return internal_evt_with_id(argc, argv, self, wxEVT_COMMAND_LISTBOX_SELECTED);
-}
-
-static VALUE evt_listbox_dclick(int argc, VALUE *argv, VALUE self)
-{
- return internal_evt_with_id(argc, argv, self, wxEVT_COMMAND_LISTBOX_DOUBLECLICKED);
-}
-
-stat...
2006 Nov 23
0
[752] trunk/wxruby2: Fix for Bug #6810: ListBox#get_selections should return an array of selections
...ew(self, -1, "Select many:", Wx::Point.new(200,50), Wx::Size.new(65,18))
</span><span class="cx"> @lb2 = Wx::ListBox.new(self, 70, Wx::Point.new(280,50), Wx::Size.new(80,120), sampleList, Wx::LB_EXTENDED)
</span><span class="cx"> evt_listbox(@lb2.get_id()) {|event| on_evt_multi_listbox(event)}
</span><del>- # evt_right_up(@lb2.get_id()) {|event| on_evt_right_button(event)}
</del><ins>+ @lb2.evt_right_up {|event| on_evt_right_button(event)}
</ins><span class="cx"> @lb2....
2006 Oct 17
0
[678] trunk/wxruby2/doc/textile/commandevent.txtl: Fixed a few event macros that did not get fixed by the parser.
...e(id) { | event | ... }*|Process a EVT_COMMAND_CHOICE_SELECTED command,which is generated by a Choice control.|
</span><span class="lines">@@ -23,7 +23,7 @@
</span><span class="cx"> |*evt_listbox(id) { | event | ... }*|Process a EVT_COMMAND_LISTBOX_SELECTED command,which is generated by a ListBox control.|
</span><span class="cx"> |*evt_listbox_dclick(id) { | eve...
2006 Nov 21
0
[746] trunk/wxruby2/doc/textile/listbox.txtl: Correct ruby method signature for methods that accept an array of strings
...span><span class="lines">@@ -45,8 +46,6 @@
</span><span class="cx">
</span><span class="cx"> h2. Event handling
</span><span class="cx">
</span><del>-
-
</del><span class="cx"> |*evt_listbox(id) { | event | ... }*|Process a EVT_COMMAND_LISTBOX_SELECTED event,when an item on the list is selected.|
</span><span class="cx"> |*evt_listbox_dclick(id) { | event&am...
2007 Oct 09
17
Crash when using item data with a CheckListBox
..."three", "four", "five"]
data = ["data1", "data2", "data3", "data4", "data5"]
lb = Wx::ListBox.new(helloframe)
# lb = Wx::CheckListBox.new(helloframe)
0.upto(4) { |i| lb.append(choices[i], data[i]) }
evt_listbox lb do |event|
puts lb.get_item_data(event.index)
end
helloframe.show
end
end
HelloWorld.new.main_loop
When an item is selected, the corresponding data is ouput.
If the list box is replaced by a check list box, the application
crashes immediately.
Cheers.
Chauk-Mean.
2007 Oct 09
17
Crash when using item data with a CheckListBox
..."three", "four", "five"]
data = ["data1", "data2", "data3", "data4", "data5"]
lb = Wx::ListBox.new(helloframe)
# lb = Wx::CheckListBox.new(helloframe)
0.upto(4) { |i| lb.append(choices[i], data[i]) }
evt_listbox lb do |event|
puts lb.get_item_data(event.index)
end
helloframe.show
end
end
HelloWorld.new.main_loop
When an item is selected, the corresponding data is ouput.
If the list box is replaced by a check list box, the application
crashes immediately.
Cheers.
Chauk-Mean.
2007 Jun 25
0
[1067] trunk/wxruby2: Set up event handlers in Ruby rather than by post-processing SWIG output
..._page_changed'', 1,
+ Wx::EVT_COMMAND_LISTBOOK_PAGE_CHANGED,
+ Wx::ListbookEvent],
+ EventType[''evt_listbook_page_changing'', 1,
+ Wx::EVT_COMMAND_LISTBOOK_PAGE_CHANGING,
+ Wx::ListbookEvent],
+ EventType[''evt_listbox'', 1,
+ Wx::EVT_COMMAND_LISTBOX_SELECTED,
+ Wx::CommandEvent],
+ EventType[''evt_listbox_dclick'', 1,
+ Wx::EVT_COMMAND_LISTBOX_DOUBLECLICKED,
+ Wx::CommandEvent],
+ EventType[''evt_list_begin_drag''...