search for: checklistbox

Displaying 20 results from an estimated 29 matches for "checklistbox".

2007 Oct 23
3
CheckListBox : delete method bug !
Hi, I''ve practically finished a patch for removing the limitation of CheckListBox (http://rubyforge.org/pipermail/wxruby-development/2007-October/000973.html) but I just discovered a new bug related with this control !! I need to redefine the delete method to take into account the deletion of the associated data. The problem is that if I just redefine this method and simply cal...
2006 Dec 01
0
[768] trunk/wxruby2/doc/textile/checklistbox.txtl: Corrected constructor method signature
...d #ccc;margin:10px 0;} #patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[768] trunk/wxruby2/doc/textile/checklistbox.txtl: Corrected constructor method signature</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>768</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2006-12-01 12:42:56...
2007 Oct 09
17
Crash when using item data with a CheckListBox
...me.new(nil, "Hello World") choices = ["one", "two", "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...
2007 Oct 09
17
Crash when using item data with a CheckListBox
...me.new(nil, "Hello World") choices = ["one", "two", "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...
2006 Dec 01
0
[767] trunk/wxruby2: Added CheckListBox to item_data test, note to explain why fixes are not needed
...solid #ccc;margin:10px 0;} #patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[767] trunk/wxruby2: Added CheckListBox to item_data test, note to explain why fixes are not needed</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>767</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2006-...
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 : i...
2008 Jan 04
2
checklistbox
...t et fonctionne bien. La dernière fois j''ai eu l''impression qu''elle ne marchait pas, car cela peut arriver que la dernière lettre de la ligne de charactères qui s''affiche soit un peu coupée par la "VSCROLL". Excuse-moi!!! A propos du contenu de la "checklistbox", si je ne me trompe pas, on est obliger de fermer et réouvrir l''application pour pouvoir le changer. Est-ce que vous comptez apporter une amélioration à la prochaine version de wxruby, pour pouvoir le changer directement? Merci sebastien http://beusse.liveror.com ___________________...
2007 Dec 28
0
checklistbox/html windows
Bonsoir Alex. Je voulais savoir, si pour la prochaine version de wxruby, vous comptiez apportez deux améliorations à "checklistbox", qui sont: - de pouvoir changez le contenu de la checklistbox sans avoir besoin de fermer et réouvrir l''application pour effectuer le changement du contenu? - de mettre l''option "HSCROLL"?, car la barre apparaît mais ça ne marche pas. Pour "htmlwindow",...
2007 Mar 29
7
object-oriented GUI design and event handling
I''m trying to setup a fairly simple GUI with Ruby to perform some SQL queries. There are a few drop-down boxes where users can select different options and then one button that when clicked should get the text from each drop-down in order to perform the query. Once it gets the result it should display it to a text control. The problem is I am not sure how to actually reference each
2008 Jan 03
0
checklistbox/htmlwindow
Bonjour Alex. Vous n''avez pas répondu à ma question précédente! Vous m''avez peut-être oublié? merci sebastien http://beusse.liveror.com _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
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
2008 Mar 13
0
TreeCtrl
Salut Alex. J''ai 1 fenetre "TreeCtrl" et 1 fenetre "CheckListBox" $d = CheckListBox..... $liste1 est un tableau. Quand je fait un clique_droit sur un item(TreeCtrl) pour activer le menu, le nom de l''item apparaît en "bold" correctement, mais quand je passe en parametre: $d.insert_items($liste1, 0) ou $d.set(client_data = $liste1), donc...
2007 Apr 03
2
CalendarCtrl.date not working?
I finally got my CheckListBoxes under control (thanks Alex& Phil) and have moved on to tackling the CalendatCtrl. This one seemed pretty easy when I was reading through the documentation but I cannot retrieve the selected date. I have the following code: def initialize... ... @calendar = panel.add(Wx::CalendarCtrl[])...
2007 Sep 15
2
wxRuby 1.9.1 and id accessor consistency problem
Hi all, wxRuby 1.9.1 introduced great Rubish style accessors (x.label as a synonym for x.get_label). I just found that get_id has no corresponding Rubish style id accessor. For a CheckListBox or a StaticText (I haven''t checked for other kind of controls), id just returns the Ruby object_id. This is very confusing and not consistent with other accessors. Chauk-Mean. _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rub...
2007 Apr 03
1
wxSugar 0.1.15 released
Hi WxSugar 0.1.15 is now available via gems and download from rubyforge. This is a minor feature release which adds a couple of new facilities: * enumerable_controls: treats ListCtrl and ControlWithItems classes, such as ComboBox, ListBox, CheckListBox as Ruby enumerables * adds Window#has_style? The former is meant to give much more rubyish access to the contents of GUI controls which present the user with a list of item to choose from: # basic iteration listbox.each { | i | puts listbox.string(i) } # iterate with string labels listbox.each...
2007 Sep 20
3
Bug? in wxSugar enumerable_controls.rb
Hi, I wanted to use wxSugar enumerable 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...
2008 May 23
3
Rss-wxruby
Bonjour Alex. J''ai créer une application(Rss-wxruby) et je l''ai déposée en téléchargement sur le site "Tom''s guide". Ils ont créer les screenshots, et la problème: Il y a des carrés qui ressortent de partout??? Voilà un url pour l''exemple du problème avec les carrés qui ressortent:
2005 Sep 04
3
Possible patch for wxCheckListBox.h
I cut-n-pasted the public section from the wxWindows headers. Several things were missing so it seemed the easiest way to fix it. This fixed a problem with the way the overloaded new was being handled. This correctly generated all the versions so that it won''t have the problem with the non-initialized default parameters. I will admit I haven''t done serious testing on
2007 Sep 17
7
Re : syntax II
Alex Fenton wrote : >1) Setting up event handlers > >In most real apps, I think the most normal way to set up event handlers >is for the event to be dealt with by a corresponding method. At the >moment this has to be done using a block: > >evt_button(AN_ID) { on_button_click } >evt_button(my_button.get_id) do | event | > on_button_click(event) >end >evt_size { |
2006 Dec 01
0
[766] trunk/wxruby2: Added item_data aliases for client_data functions, update doc & tests;
...;<span class="cx"> h1(#wxcontrolwithitems). Wx::ControlWithItems </span><span class="cx"> </span><del>-This class is an abstract base class for some Widgets controls which contain -several items, such as "ListBox":listbox.html and -"CheckListBox":checklistbox.html derived from it, -"Choice":choice.html and "ComboBox":combobox.html. </del><ins>+This class is an abstract base class for several Widgets controls which +contain several items, such as "ListBox":listbox.html and +"CheckListBox&...