ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 15日 (土) 06:35:11 JST
------------------------- REMOTE_ADDR = 184.145.80.187 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-txtw-textview ------------------------- @@ -213,7 +213,7 @@ -Tabs added to a text view are set to a default width, but there are times when this is not what you want. GTK+ provides Pango::TabArray object, which can help you define a new tab size. In order to change the tab size you must first calculate the number of horizontal pixels the tab will take up based on the current font. Let us expand our first simple example (textview.rb) by adding a tab size altering function called ((*make_tab_array.*)) +Tabs added to a text view are set to a default width, but there are times when this is not what you want. GTK+ provides Pango::TabArray object, which can help you define a new tab size. In order to change the tab size you must first calculate the number of horizontal pixels the tab will take up based on the current font. Let us expand our first simple example (textview.rb) by adding a tab size altering function called ((*make_tab_array.*)) In this program the tab size is arbitrarily restricted be less than 20 characters. {{br}}