PDA

View Full Version : LIst Item


digibrix
03-17-2004, 11:04 PM
I click on a menu link that opens the following window.. I want to click on a listitem and open up a new window as well as close the list window..

the following code was trying to just close it on click .. i am in need of help to do the two functions at once.. thanks



<window width="250" height="250" resizable="true" closeable="true" name="projectlist" visible="false" title="PROJECT LIST" style="greencolors">
<view layout="axis:y;spacing:4" width="${immediateparent.width}" clickable="true">
<list style="customlistcolors" spacing="2" bgcolor="${iceblue4}" width="${immediateparent.width}" clickable="true">
<textlistitem clickable="true">Windows XP Update</textlistitem>
<textlistitem>Windows XP Update</textlistitem>
<textlistitem>Windows XP Update</textlistitem>
<textlistitem>Windows XP Update</textlistitem>
<method event="onclick">parent.parent.close();</method>
</list>

</view>
<scrollbar/>
</window>

vfunshteyn
03-18-2004, 12:35 PM
Why not just add a "new window(...)" statement in your onclick handler for the list? I think something like this should work:

<method event="onclick">
parent.parent.close()
new window(canvas, {width: 200, height: 200, closeable: true, ....)
</method>