Re: Login
Emiliano Heyns <[email protected]> Sun, 13 Apr 2003 19:36:40 +0200
| Newsgroups | gmane.comp.java.xwt.general |
|---|---|
| Message-ID | <[email protected]> |
Andrew Kohlsmith wrote:
>>so it's easy for that window to disappear beneath another. This
>>behaviour is going to be confusing to many of my users, so I would in
>>fact *prefer* the login-covers-app method until modal windows (including
>> stay-on-top) is implemented. If ever.
>
> That would help. I'd just take the disabler code and instead of being a 20%
> alpha black box, put the login widget there.. Hell use login.xwt from
> com/benshaw and have that box absolute and appear over the main one and it
> should work for you, I think.
There's something weird going on that makes this widget not work in my
app (even though it does work in disabledemo). This must have something
to do with how I instantiate my main window. I have a main.xwt that says:
<xwt>
<redirect target="self"/>
<preapply name="nl.irisadvies.iris.initialize" />
<preapply name="nl.irisadvies.iris.main"/>
<template height="180" width="400" thisbox="frame">
titlebar = xwt.static.nl.irisadvies.iris.translations.main.title
</template>
</xwt>
where nl/irisadvies/iris/main.xwt does:
<xwt>
<static>
xwt.theme("xwt.standard", "org.xwt.themes.monopoly");
</static>
<redirect target="self"/>
<import name="xwt.standard.*"/>
<template id="main" orient="vertical" titlebar="[placeholder]">
var dbox = xwt.newBox();
dbox.apply("ca.porchlight.disabler");
dbox.parent = thisbox;
dbox.active = true;
....
</template>
</xwt>
I have to set titlebar in main.xwt instead of in
nl/irisadvies/iris/main.xwt (where I'd prefer to do it) since it has no
effect in the latter. Copying the code for dbox from disabledemo to my
app does not work, the log says
Trap: WARNING: uncaught interpreter exception: Cannot convert null to an
object.
Trap: thrown from within trap 'active' at ca.porchlight.disabler:27
I suspect that I have somehow set up my main window incorrectly that
makes thisbox not refer to my window. Or null. Or something.
I'm on IRC if you want to hash this out.
Emile
_______________________________________________
http://lists.xwt.org/listinfo/dev