These are shoe scripts written by users

Used to further explain how script examples work etc.

For each script please enter the following type of info:

Last Updated Date: 2007-08-08 Version of Shoes: 0.r60








Scripts

Flows of buttons and text

Last Updated Date: 2007-08-08 Version of Shoes: 0.r60

label, label2= nil
Shoes.app  :width => 500   do

    stack do
            flow :width => 300 do
          # flow :width => 0.5    #0.5 is 50%
          
                        button "Txt      " do
                        label.replace "*#{label}"       
                                           end
                        label = text "*"
                               end                                               
          end
                  
    stack do
            flow :width => 300, :margin => 20 do
          # flow :width => 0.5, :margin => 20 do   #0.5 is 50%
          
                        button "Txt L-mgn" do
                        label2.replace "*#{label2}"     
                                           end
                        label2 = text "*"
                                              end                                                
          end
                  
    stack do
                flow :width => 300 do
                        button "Btn      " do
                        button "*"      
                                           end
                                   end  
          end
  
    stack do
                flow :width => 300, :margin => 20 do
                        button "Btn L-mgn" do
                        button "*"      
                                           end
                                                  end   
           end            

    stack do              
text "     Window is 500 across - Flow is 300 - Text does NOT obey flows"
          end
        stack do                  
text "     :rmargin does Not work for buttons or text"
              end
                           end