ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 27日 (木) 09:06:07 JST
------------------------- REMOTE_ADDR = 184.145.80.187 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-trees ------------------------- @@ -683,6 +683,7 @@ {{image_left("treev-MultiDim-load-asci-table.png")}} Following is the program, called "treev-MultiDim-load-asci-table.rb", that displays the above array of arrays, we created in a separate module, the screenshot of which you cam see here on the left. Indeed, to run it you have to download both the above module ("initialize-products-from-asci-table.rb") and the following program into the same directory. This program works just as expected. However, because we dynamically process some of its data, namely by nature, the accumulative price, it also requires a special attention, when adding or removing rows. The addition and deletion of records in a tree store is a serious matter, even when we do not have dynamically changed data, and will be dealt with only after we have a second look at Gtk::TreePath, Gtk::TreeIter, and Gtk::TreeRowReference. You can guess, on the following pages we will encounter a second version of this program, demonstrating how to handle adding and deleting rows. +{{br}} ((*treev-MultiDim-load-asci-table.rb*))