ruby-****@sourc*****
ruby-****@sourc*****
2012年 11月 10日 (土) 03:42:23 JST
------------------------- REMOTE_ADDR = 184.145.95.170 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-mnstbs-tb ------------------------- @@ -226,11 +226,12 @@ {{image_right("toolb-vertical-s1.png")}} -You can set the toolbar orientation by setting the Gtk::Toolbar.orientation= to one of the constants defined in Gtk::Orientation. By default it is set to Gtk::ORIENTATION_VERTICAL. All you need to do is include the following line in your code: +You can set the toolbar orientation by setting the Gtk::Toolbar.orientation= to one of the constants defined in Gtk::Orientation. By default it is set to Gtk::ORIENTATION_HORIZONTAL. To change that, all you need to do is include the following line in your code: - toolbar.orientation = Gtk::ORIENTATION_VERTICAL + toolbar.orientation = Gtk::Orientation::VERTICAL To place your toolbar on the side vertically, requires a different screen layout organization. In our example program we use the following layout: + toolbar.orientation = Gtk::ORIENTATION_VERTICAL hbox = Gtk::HBox.new(false, 5)