search for: mylistbox

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

2005 Mar 23
2
FXListBox size behavior?
...ested using FXRuby 1.2.5 and Ruby 1.8.2 (One-click installer # on Windows XP) require ''fox12'' include Fox application = FXApp.new("listboxtest", "FoxTest") main = FXMainWindow.new(application, "FXListBox test", nil, nil, DECOR_ALL, 0, 0, 400, 200) myListBox = FXListBox.new(main) myListBox.appendItem("a very long example") myListBox.appendItem("short") myListBox.appendItem("longer") myListBox.appendItem("even longer") myListBox.appendItem("shorter") myListBox.numVisible = myListBox.numItems application...
2010 Apr 03
0
FXlistBox.fillItems() segmentation fault - Found Work-around
As my prior posts show, I was getting very random segmentation faults when repeatedly clearing items from a listbox and then repopulating the items. I was using the following statements: mylistbox.clearItems() mylistbox.fillItems(new_list) This would work for awhile, but after enough iterations of clearing and replacing the items in the listbox it would segmentation faults at the .fillItems call. I found a workaround. If instead, I do: mylistbox.clearItems() new_list.each { |item| mylist...
2003 Aug 24
0
Tcltk changes in R 1.8.0
...ttle advertised) features of the old interface. Apart from overt bugs, the only source of breakage that I am aware of is that a vector of length > 1 used to be converted to multiple arguments; now it becomes a single Tcl list object. The feature allowed you to do things like tkinsert(mylistbox, "end", vector.of.entries), but it got in the way in other contexts and overall I think it was a misfeature. Please try this out on your favourite tcltk codes and tell me ASAP if anything breaks. Also, please tell me if there are still things that you cannot do cleanly (i.e. withou...