ruby-****@sourc*****
ruby-****@sourc*****
2012年 8月 14日 (火) 07:29:18 JST
------------------------- REMOTE_ADDR = 184.145.90.35 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-treeview-renderer-types ------------------------- @@ -13,6 +13,6 @@ # ... treeview.append_column(col) -Even though the "text" property would require a string value, we use a model column of an integer type when setting attributes. The integer will then automatically be converted into a string before the cell renderer property is set. +Even though the "text" property would require a string value, we can use a model column of a ((*boolean, integer, fix-num,*)) or ((*float*)) type when setting attributes. The any of these types will then automatically be converted into a string before the cell renderer property is set. If you are using a Float class, there is no way to tell the text cell renderer how many digits after the floating point (or comma) should be rendered. If you only want a certain amount of digits after the point/comma, you will need to use a ((<cell data function|tut-treeview-renderer-celldatafunc>)).