ashbb,

That is a nice "trick" indeed. Hey, it does the job.

Thank you for your help.


On Mon, Jul 1, 2013 at 8:58 AM, ashbb <ashbbb / gmail.com> wrote:

> Hi Ruby Student,
>
> I'm not sure this is the solution you are looking for. But try it out. ;-)
>
>
> require "green_shoes"
> require 'rubygems'
>
> Shoes.app :height => 666, :width => 811, :resizable => false do
>    background magenta
>    title (strong("Sudoku")), :size => 26, :align=>'center'
>     para " "
>    para " "
>
>    @btn = Array.new(9) {Array.new(9) {123456789}}
>
>    nostroke
>    rect 0, 100, 86*9+6, 53*9+3, fill: green
>    rect 86*3+3, 100, 86*3, 53*3+2, fill: yellow
>    rect 0, 100+53*3+2, 86*3+3, 53*3, fill: yellow
>    rect 86*6+3, 100+53*3+2, 86*3+2, 53*3, fill: yellow
>    rect 86*3+3, 100+53*6+2, 86*3, 53*3+1, fill: yellow
>
>
>    (0..8).each do |r|
>       stack :margin => 3 do
>          flow :width => 866 do
>             (0..8).each do |c|
>                @btn[r][c] = button "123456789", :width => 86, :height => 50
>             end # End do c
>          end # flow
>       end # End stack
>    end # End do r
> end # app
>
> Regards,
> ashbb
>



-- 
Ruby Student