root / trunk / samples / form.rb

Revision 451, 0.8 kB (checked in by why, 5 months ago)
  • samples/form.rb: images were broken.
Line 
1Shoes.app :width => 320, :height => 350 do
2  background "../static/menu-gray.png"
3  background "../static/menu-top.png", :height => 50
4  background "../static/menu-left.png", :top => 50, :width => 55
5  background "../static/menu-right.png", :right => 0, :top => 50, :width => 55
6  image "../static/menu-corner1.png", :top => 0, :left => 0
7  image "../static/menu-corner2.png", :right => 0, :top => 0
8
9  stack :margin => 40 do
10    stack :margin => 10 do
11      para "Name"
12      @name = list_box :items => ["Yes, please!", "NO.  No thankyou."]
13    end
14    stack :margin => 10 do
15      para "Address"
16      @address = edit_line
17    end
18    stack :margin => 10 do
19      para "Phone"
20      @phone = edit_line
21    end
22    stack :margin => 10 do
23      button "Save" do
24        Shoes.p [@name.text, @address.text, @phone.text]
25      end
26    end
27  end
28end
Note: See TracBrowser for help on using the browser.