1. Technology
Send to a Friend via Email
You can opt-out at any time. Please refer to our privacy policy for contact information.

What's a Stack? What's a Flow? --The Shoes Layout Manager

By

4 of 6

Overflow
What's a Stack? What's a Flow? --The Shoes Layout Manager

There's one more important thing to understand about flows. If you run out of space horizontally, Shoes will never create a horizontal scroll bar. Instead, Shoes will create the elements lower down on the "next line" of the application. It's like when you reach the end of a line in a word processor. The word processor doesn't create a scrollbar and let you keep typing off the page, instead it places the words on the next line.

Shoes.app :width => 400, :height => 140 do
  button "Button 1"
  button "Button 2"
  button "Button 3"
  button "Button 4"
  button "Button 5"
  button "Button 6"
end
  1. About.com
  2. Technology
  3. Ruby
  4. Graphical User Interfaces
  5. Shoes
  6. Overflow

©2014 About.com. All rights reserved.