# File gtk/sample/gtk-demo/button_box.rb, line 61
    def create_bbox(horizontal, title, spacing, layout)
      frame = Gtk::Frame.new(title)
      
      bbox = if horizontal
               Gtk::HButtonBox.new
             else
               Gtk::VButtonBox.new
             end

      bbox.set_border_width(5)
      frame.add(bbox)

      bbox.layout_style = layout
      bbox.set_spacing(spacing)

      [Gtk::Stock::OK, Gtk::Stock::CANCEL, Gtk::Stock::HELP].each do |stock|
        button = Gtk::Button.new(stock)
        bbox.add(button)
      end

      return frame
    end