Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (19 sloc) 0.668 kb

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

Jump to Line
Something went wrong with that request. Please try again.