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
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
>
>
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 > > >
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
>>
>>
>>
>
>
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
>>>
>>>
>>>
>>
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
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
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
> > 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.