ruby-****@sourc*****
ruby-****@sourc*****
2012年 8月 14日 (火) 05:34:14 JST
------------------------- REMOTE_ADDR = 184.145.90.35 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-treeview-renderer-attributes ------------------------- @@ -34,7 +34,7 @@ Another way to get your model data displayed on the screen is to set up ((<cell data functions|tut-treeview-renderer-celldatafunc>)). -Following is an example showing how to programmatically (manually) handle attributes, in particular ((*text, forground*)) and ((*foreground_set.*)) Again the program utilizes ((*set_cell_data_func*)) method which we haven't covered yet, and those of you that find this disturbing can ignore the rest of this page on your first reading. Also pay attention to the ((*text*)) attribute for the Age (3rd) column in the view, which in model is defined as integer, but is displayed in a virtual String column on the view! +Following is an example showing how to programmatically (manually) handle attributes, in particular ((*text, foreground*)) and ((*foreground_set.*)) Again the program utilizes ((*set_cell_data_func*)) method which we haven't covered yet, and those of you that find this disturbing can ignore the rest of this page on your first reading. Those of you who continue reading, pay attention also to the ((*text*)) attribute for the Age (3rd) column in the view, which in model is defined as integer, but is displayed in a virtual String column on the view! ((*Demo showing how to handle attributes:*))