Gah! My eyes, my eyes!
Just kidding. This is very clever :-)
This also works for me if I set the 5 to 0, but there's still an initial
flicker if the Shoes window contains other components.
Here's an example of how I was wanting to use it.
Shoes.app do
b = button "Foo Bar Baz"
timer 0 do
Shoes.app :width => b.width+2, :height => b.height+2, :title =>
b.style[:text] do
button b.style[:text]
end
app.close
end
end
I'm not sure if it's worth the extra effort to do this (e.g. having to
create the same widgets in both Shoes.app) or how difficult it would be with
more widgets, but still, you, sir, are a genius.
Thanks,
Jeff
On Wed, Jul 15, 2009 at 9:18 AM, Satoshi Asakawa <[email protected]> wrote:
> Hi Ehsanul,
>
> I know this is not your request.
> But it may be seen like the same behavior. ;-)
>
> Shoes.app :width => 200, :height => 200, :title => 'Hi' do
> timer 5 do
> Shoes.app :width => 300, :height => 300, :title => 'Hello'
> app.close
> end
> end
>
> Regards,
> ashbb
>
>
> On Wed, Jul 15, 2009 at 9:30 PM, Ehsanul Hoque <[email protected]>wrote:
>
>>
>> Somebody was confused about setting the size of a window, but I thought it
>> was about dynamically changing it, which is something I've wanted to do
>
>
>