# File tst/tst_locana.rb, line 394 def tst_spanning() Lwindow.new(:TestSpanning, :text => 'Test :spanw and :spanh') { # this should be centered label(:l0, :sticky=>:n, :text=>"Test various combinations of the :startx, :starty, :spanw, and :spanh attributes") group(:g1, :below=>:prev) { button(:b0, :text=>" nw ", :sticky=>:nw) button(:b1, :text=>" >1 ", :sticky=>:nw, :after=>:prev) button(:b2, :text=>" >2 ", :sticky=>:nw, :after=>:prev) button(:b3, :text=>" >3 ", :sticky=>:nw, :after=>:prev) button(:bw1, :text=>"spanW1", :sticky=>:nw, :below=>:b0, :spanw=>:b1) button(:bw2, :text=>"spanW2", :sticky=>:nw, :below=>:b2, :after=>:prev, :spanw=>:b3) button(:bw3, :text=>"spanW3", :sticky=>:nw, :below=>:bw1, :spanw=>:b2) button(:bw4, :text=>"spanW4", :sticky=>:nw, :below=>:bw3, :spanw=>:b3) button(:bw5, :text=>"spanW5", :sticky=>:nw, :below=>:prev, :startx=>:b1, :spanw=>:b2) button(:bh1, :text=>"spanH1", :sticky=>:nw, :after=>:b3, :spanh=>:bw2) button(:bh2, :text=>"spanH2", :sticky=>:nw, :after=>:prev, :spanh=>:bw3) button(:bh3, :text=>"spanH3", :sticky=>:nw, :after=>:prev, :starty=>:bw1, :spanh=>:bw4) button(:bh4, :text=>"spanH4", :sticky=>:nw, :after=>:prev, :starty=>:bw2, :spanh=>:bw3) button(:bh5, :text=>"spanH5", :sticky=>:nw, :after=>:bw4, :starty=>:bw4, :spanh=>:bw5) } button(:b_ok, :sticky=>:se, :padx=>10, :pady=>10, :text=>'Ok', :tab_order=>0) b_ok.on_click = "close()" # this button will close the form b_ok.set_focus() } end