Re: child wrappers
Rod Martin <[email protected]> Tue, 8 Apr 2003 07:36:14 -0400
| Newsgroups | gmane.comp.java.xwt.general |
|---|---|
| Organization | Benshaw |
| Message-ID | <[email protected]> |
On April 8, 2003 7:25 am, Charles Goodwin wrote:
> > templates are only supposed to be applied in a
> > *background* thread.
>
> Hmm I thought this was no longer entirely true. I've been doing
> xwt.newBox().apply( "some.template" ) in the foreground thread without
> error recently.
I've noticed the same thing. 'Thread' functions work if they are in the body
of a template outside of any functions.
ie,
<xwt>
<template>
// All these statements function properly without error
xwt.yield();
xwt.sleep(1000);
thisbox[0] = xwt.newBox().apply({ color : "red" });
var someFunction = function() {
// None of these statements work unless you put them in a thread
xwt.yield();
xwt.sleep(1000);
thisbox[0] = xwt.newBox().apply({ color : "red" });
}
</template>
</xwt>
Is this a bug or is this the way it's supposed to work?
Rod
_______________________________________________
http://lists.xwt.org/listinfo/dev