ruby-****@sourc*****
ruby-****@sourc*****
2012年 8月 17日 (金) 02:53:28 JST
------------------------- REMOTE_ADDR = 70.49.49.99 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-parts ------------------------- @@ -197,11 +197,13 @@ +As we have seen, after creating the Gtk::TreeView, you have to add one or more columns to the view for it to be of any use. Each Gtk::TreeViewColumn is composed of a header displaying a short description of its content, and at least one cell renderer. + + ==== Cell Renderers: -As we have seen, after creating the Gtk::TreeView, you have to add one or more columns to the view for it to be of any use. Each Gtk::TreeViewColumn is composed of a header displaying a short description of its content, and at least one cell renderer. All cell renderers are derived from the Gtk::CellRenderer class. Each cell renderer contains a number of properties that determine how data will be drawn within a cell. -The Gtk::CellRenderer class provides common properties to all derived renderer classes including: background colour, size parameters, alignment, mode, visibility, sensitivity, padding, etc. You should check the API documentation for full list. It also provides ((*editing_canceled*)) and ((*editing-started*)) signals, the former emitted when the user cancels the process of editing a cell, and the latter emitted when a cell is started to be edited. +All cell renderers are derived from the Gtk::CellRenderer class. Each cell renderer contains a number of properties that determine how data will be drawn within a cell. The Gtk::CellRenderer class provides common properties to all derived renderer classes including: background colour, size parameters, alignment, mode, visibility, sensitivity, padding, etc. You should check the API documentation for full list. It also provides ((*editing_canceled*)) and ((*editing-started*)) signals, the former emitted when the user cancels the process of editing a cell, and the latter emitted when a cell is started to be edited. ###### foreground # -s- ########## We have introduced the((*forefround*))colour attribute in our program here: