librelist archives

« back to archive

Green Shoes - Simple Question

Green Shoes - Simple Question

From:
Christian
Date:
2011-06-12 @ 16:03
Hi,

I am sure this is a really stupid question, but I a have no idea anymore...

I have the following code:

   stack :width => 400 do
     flow do
       @bw_scan = radio para "Black and White Scan"
       @color_scan = radio para "Color Scan"
     end
   end

Whatever I do, I get the "Checkbox-Circle" and the "Checkbox-Text" in a 
different row.
Expected:
o  Black and White Scan
o Color Scn

But I get:
o
Black and White Scan
o
Color Scan

I am running Green Shoes !!!

Thanks,
  pmsfriend

Re: [shoes] Green Shoes - Simple Question

From:
J. Kaiden
Date:
2011-06-12 @ 16:28
hey there,

  with red shoes, the code below gives me something that looks like this:

Black and White Scan o  Color Scan o

  as i would expect it to - the two radio buttons are in a flow, which are
horizontal containers...

  you could try this:

Shoes.app do
  stack :width => 400 do
    flow{@bw_scan = radio; para "Black and White Scan"}
    flow{@color_scan = radio; para "Color Scan"}
  end
end

 again, i'm working with red shoes, but i think it should be the same for
both...

  - j

>
>

Re: [shoes] Green Shoes - Simple Question

From:
Christian
Date:
2011-06-12 @ 16:31
Thanks for this fast reply.
I tried it and I got the same, maybe it is related to GreenShoes ;-(
Anybody out here with GreenShoes experience ?
Is this still the right group to post ?
Thanks,
  James



On 06/12/2011 06:28 PM, J. Kaiden wrote:
> hey there,
>
>   with red shoes, the code below gives me something that looks like this:
>
> Black and White Scan o  Color Scan o
>
>   as i would expect it to - the two radio buttons are in a flow, which 
> are horizontal containers...
>
>   you could try this:
>
> Shoes.app do
>   stack :width => 400 do
>     flow{@bw_scan = radio; para "Black and White Scan"}
>     flow{@color_scan = radio; para "Color Scan"}
>   end
> end
>
>  again, i'm working with red shoes, but i think it should be the same 
> for both...
>
>   - j
>
>
>

Re: [shoes] Green Shoes - Simple Question

From:
Steve Klabnik
Date:
2011-06-12 @ 16:41
>
> Is this still the right group to post ?
>

It is. Ash lives in Japan, though, I'm not sure what time it is there right
now.

Re: [shoes] Green Shoes - Simple Question

From:
Ender
Date:
2011-06-12 @ 18:09
In green_shoes you need to give para the width option

This should work:

    stack :width => 400 do
      flow do
        @bw_scan = radio
	para "Black and White Scan" , width: 35
        @color_scan = radio
	para "Color Scan" ,width: 30
      end
    end


Am 12.06.2011 18:31, schrieb Christian:
> Thanks for this fast reply.
> I tried it and I got the same, maybe it is related to GreenShoes ;-(
> Anybody out here with GreenShoes experience ?
> Is this still the right group to post ?
> Thanks,
> James
>
>
>
> On 06/12/2011 06:28 PM, J. Kaiden wrote:
>> hey there,
>>
>> with red shoes, the code below gives me something that looks like this:
>>
>> Black and White Scan o Color Scan o
>>
>> as i would expect it to - the two radio buttons are in a flow, which
>> are horizontal containers...
>>
>> you could try this:
>>
>> Shoes.app do
>> stack :width => 400 do
>> flow{@bw_scan = radio; para "Black and White Scan"}
>> flow{@color_scan = radio; para "Color Scan"}
>> end
>> end
>>
>> again, i'm working with red shoes, but i think it should be the same
>> for both...
>>
>> - j
>>
>>
>>
>
>

Re: [shoes] Green Shoes - Simple Question

From:
Christian
Date:
2011-06-13 @ 01:32
Hi,  yes - it is working with width :-)

Finally it looks as follow:
stack :width => 500, :margin_left => 20 do
         flow{@bw_scan = radio :scan; para "Black and White Scan", 
:width => 250}
         flow{@color_scan = radio :scan ; para "Color Scan",:width => 250}
end

Thanks to everybody - great.
Maybe documentation should be updated about this ;._)
Regards,
  James


On 06/12/2011 08:09 PM, Ender wrote:
> In green_shoes you need to give para the width option
>
> This should work:
>
>      stack :width =>  400 do
>        flow do
>          @bw_scan = radio
> 	para "Black and White Scan" , width: 35
>          @color_scan = radio
> 	para "Color Scan" ,width: 30
>        end
>      end
>
>
> Am 12.06.2011 18:31, schrieb Christian:
>> Thanks for this fast reply.
>> I tried it and I got the same, maybe it is related to GreenShoes ;-(
>> Anybody out here with GreenShoes experience ?
>> Is this still the right group to post ?
>> Thanks,
>> James
>>
>>
>>
>> On 06/12/2011 06:28 PM, J. Kaiden wrote:
>>> hey there,
>>>
>>> with red shoes, the code below gives me something that looks like this:
>>>
>>> Black and White Scan o Color Scan o
>>>
>>> as i would expect it to - the two radio buttons are in a flow, which
>>> are horizontal containers...
>>>
>>> you could try this:
>>>
>>> Shoes.app do
>>> stack :width =>  400 do
>>> flow{@bw_scan = radio; para "Black and White Scan"}
>>> flow{@color_scan = radio; para "Color Scan"}
>>> end
>>> end
>>>
>>> again, i'm working with red shoes, but i think it should be the same
>>> for both...
>>>
>>> - j
>>>
>>>
>>>
>>

Re: [shoes] Green Shoes - Simple Question

From:
ashbb
Date:
2011-06-13 @ 11:07
Hi James,

Sorry for my late reply. I'm living in Japan, GMT +9 time zone.

This problem is one of the Green Shoes restrictions.

> Maybe documentation should be updated about this ;._)
True!
I'm now trying to solve this problem. But have not solved yet. :-P

Cheers,
ashbb

Re: [shoes] Green Shoes - Simple Question

From:
ashbb
Date:
2011-06-14 @ 14:18
Hi James et al,

Added `vs.RedShoes` section on Green Shoes manual and wrote about this.

http://ashbb.github.com/green_shoes/vs.RedShoes.html

Thanks for your good suggestion! :)

ashbb

Re: [shoes] Green Shoes - Simple Question

From:
PMsFriend
Date:
2011-06-15 @ 18:32
Hi ashbb,
thanks a lot for this great implementation and your fast feedback.
It is fantastic to have a tool like this,  that allows to quickly
implement GUI solutions with Ruby.
Many greetings from Germany,
 James


On 06/14/2011 04:18 PM, ashbb wrote:
> Hi James et al,
>
> Added `vs.RedShoes` section on Green Shoes manual and wrote about this.
>
> http://ashbb.github.com/green_shoes/vs.RedShoes.html
>
> Thanks for your good suggestion! :)
>
> ashbb