[Moonlight-list] Getting a basic IronPython SL app working in Moonlight

Jimmy Schementi jschementi at gmail.com
Wed Jul 22 23:43:05 EDT 2009

With this fix (though using this build:
let me know if I should use a different one) now no KeyUp events are being
fired, windowed or windowless. Here's a smaller


On Wed, Jul 22, 2009 at 7:28 PM, Jimmy Schementi <jschementi at gmail.com>wrote:

> On Wed, Jul 22, 2009 at 5:51 PM, Sebastien Pouliot <
> sebastien.pouliot at gmail.com> wrote:
>> Hello Jimmy,
>> On Wed, 2009-07-22 at 16:28 -0700, Jimmy Schementi wrote:
>> > Here's a pretty significant IronRuby app working in Moonlight:
>> > http://jimmy.schementi.com/silverlight/Tutorial/
>> >
>> >
>> > Is there a good way to detect that Moonlight is running it? I do a
>> > very naive test for System.Windows.Browser to differentiate between
>> > desktop/silverlight, but because some things don't work in Moonlight I
>> > want to differentiate it further.
>> I don't think we have (yet) a safe, future proof, way to detect
>> Moonlight (like we have one documented for Mono itself). I suggest you
>> test for a specific (internal) Moonlight type and react accordingly.
>>        e.g. Type.GetType("Mono.MoonException, System.Windows, ...") !=
>>        null
>> But don't interpret this as the final answer - it's not something that
>> should be used as-is since we want to fix things not working on
>> Moonlight (not have applications hide them ;-)
> Great, that will work for now. And yes, I'll make sure to report bugs for
> things that aren't working, this is just a temporary thing =)
>> > BUT it crashes Firefox when I click on the "IronRuby tutorial", and
>> > then try to type something in the prompt. It's a TextBox with the
>> > KeyUp event hooked, it looks like the crash happens before control
>> > gets to the handler.
>> >
>> >
>> > Here's what Firefox spits out, in case it helps:
>> [removed]
>> This was one of the issue I have seen yesterday while testing webide (on
>> the control sample*). I fixed it this morning in r138413. You'll need to
>> update (again ;-) your plugin to that revision (or later).
>> Have fun at OSCON!
>> Sebastien
>> * it occurs because the plugin is running windowless (even if it does
>> not look like that was required for webide).
> Ah! You're awesome. I'll update and let you know how it goes. If I run
> non-windowless it does work, but the enter key isn't reacting; I'll take a
> look.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/moonlight-list/attachments/20090722/9cd8f3f1/attachment.html 

More information about the Moonlight-list mailing list