Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (19 sloc) 668 Bytes

slot with scrollbar

The :scroll option establishes a slot as a scrolling slot.

# sample41.rb
Shoes.app :width => 240, :height => 161, :resizable => false do
  image '../images/jellybeans.jpg'
  flow :width => 100, :height => 40, :left => 2, :top => 2, :scroll => true do
    background bisque
    30.times do |i|
      color = COLORS.keys.map{|sym|sym.to_s}.sort_by{rand}
      para "colorful jellybeans", :stroke => send(color.first)
    end
  end
end

sample41.png

sample41.png

Policeman

The sample41.rb worked well with Shoes-0.r1263