Hi Jordan,
I confirmed your problem.
It happened on my Windows Vista and Windows XP both.
I think this behavior is a bug. Because the following snippet works well, no
crash.
Shoes.app :width => 300, :height => 400 do
s = stack do
button("press me"){alert("You won't see this.")}
end
s.style :width => 0.5, :height => 1.0
end
@_why, have you confirmed this problem?
Regards,
ashbb
On Wed, Dec 3, 2008 at 12:42 AM, Jordan Applewhite <
[EMAIL PROTECTED]> wrote:
> Strange... I tried it on XP Pro sp2 and Vista (sp1?). I just did it again
> on my work computer, another XP Pro sp2 machine. What kinds of programs or
> OS settings would conflict with Shoes? I thought it might be this
> Autohotkey script I use for KDE-style window dragging, but the error still
> occurs when that script is turned off.
> Any other suggestions? I really appreciate your help, Jonty!
>
> On Tue, Dec 2, 2008 at 5:44 AM, jonty <[EMAIL PROTECTED]> wrote:
>
>> Hi Jordan
>>
>> I've tried your code and it works without a problem,
>>
>> same versions as yourself, win32(xp sp3) r1091 shoes
>>
>> So i'm not sure what your problem is.. which windows have you got?
>>
>>
>> Jordan Applewhite wrote:
>>
>>> I just spent an hour struggling with this so I thought I would post here
>>> for posterity (and for other newbies like myself). It appears that using
>>> :height instead of :scroll_height to style stacks will lead to weird
>>> crashes. Or maybe I'm doing something terribly stupid, I don't know. For
>>> example, this will crash when the button is pressed:
>>>
>>> Shoes.app :width => 300, :height => 400 do
>>> stack :width => 0.5, :height => 1.0 do
>>> button("press me"){alert("You won't see this.")}
>>> end
>>> end
>>>
>>>
>>> but this will not crash when the button is pressed:
>>>
>>> Shoes.app :width => 300, :height => 400 do
>>> stack :width => 0.5, :scroll_height => 1.0 do
>>> button("press me"){alert("Pressed!")}
>>> end
>>> end
>>>
>>> For the record, I was running raisins 0.r1091, mswin32. Bye for now!
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database:
>>> 270.9.12/1821 - Release Date: 30/11/2008 17:53
>>>
>>>
>>>
>>
>