ruby-****@sourc*****
ruby-****@sourc*****
2012年 8月 26日 (日) 05:18:15 JST
------------------------- REMOTE_ADDR = 70.49.49.99 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-addrnhs ------------------------- @@ -263,7 +263,7 @@ Gtk.main -The above program demonstrated how user selections are handled in tree view. If you look closely you will find Gtk::TreeSelection#set_select_function method with which we set the selection block. This code block is called before any node is selected or unselected, giving the programmer additional control over which nodes are about to get selected and unselected. The select block should return((*true*))if the state of the node may be toggled, and false if the state of the node should be left unchanged. The toggled value is passed to us in the block parameter in our example program and in API called((*currently_selected*)). The best way to understand this feature is to run the program once with set_select_function block returning((*true*))and subsequently with the return value((*false*))and comparing the console output of the two runs. +The above program demonstrated how user selections are handled in tree view. If you look closely you will find Gtk::TreeSelection#set_select_function method with which we set the selection block. This code block is called before any node is selected or unselected, giving the programmer additional control over which nodes are about to get selected and unselected. The select block should return((*true*))if the state of the node may be toggled, and false if the state of the node should be left unchanged. The toggled value is passed to us in the block parameter in our example program and in API called((*currently_selected.*))The best way to understand this feature is to run the program once with set_select_function block returning((*true*))and subsequently with the return value((*false*))and comparing the console output of the two runs.