Re: Using xwt.clone to theme
Charles Goodwin <[email protected]> Tue, 10 Feb 2004 00:25:59 +0000
| Newsgroups | gmane.comp.java.xwt.widgets |
|---|---|
| Organization | XWT Foundation |
| Message-ID | <[email protected]> |
This doesn't work David. Apparrently there's "4 different things wrong
with it."
On Wed, 2004-01-28 at 04:16, David Crawshaw wrote:
> On 27/01/2004, at 2:25 PM, Charles Goodwin wrote:
> > .xwt.theme = xwt.clone(.path.to.theme);
>
> I don't think so. Last time I checked the idea was:
>
> var new_xwt = xwt.clone(xwt);
> new_xwt..xwt.theme ++= function() { return .path.to.theme; }
> new_xwt..path.to.main(xwt.box);
>
> This:
> line 1 - creates a new xwt universe in variable new_xwt
> line 2 - uses a read trap to replace xwt.theme with
> specific theme inside the new universe
> line 3 - applies the main template from the new universe
> to a new box.
>
> Whenever something inside the main template tries to reference
> xwt.theme, it gets the result of the read trap we placed on
> it, silently redirecting it to the theme of our choice.
>
> Self-emulation is the idea.
>
> d
>
>
> _______________________________________________
> widgets mailing list
> [email protected]
> http://lists.xwt.org/listinfo/widgets
--
- Charlie
The future of the net - www.xwt.org
Charles Goodwin <[email protected]>
Member of the XWT Foundation