<canvas width="100%" height="100%" debug="true">
<method event="oninit" reference="canvas">
this.del = new LzDelegate ( this, "setCurrentTime" );
LzTimer.addTimer( this.del, 1000 );
</method>
<method name="setCurrentTime">
<![CDATA[
var months = new Array
("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"
);
var currdate = new Date();
var day = currdate.getDate();
var month = currdate.getMonth();
var year = currdate.getYear()+1900;
var hour = currdate.getHours();
var min = currdate.getMinutes();
var sec = currdate.getSeconds();
clock.setAttribute("text",
year+"-"+months[month]+"-"+day+" "+hour+":"+min+":"+sec);
LzTimer.addTimer( this.del, 1000 );
]]>
</method>
<window width="100%" height="100%" title="My app">
<simplelayout axis="y" spacing="0"/>
<view name="menuarea" width="100%">
<simplelayout axis="x" spacing="0"/>
<menubar width="100%" >
<menu text="File" width="100">
<menuitem text="New">
<menu name="submenu">
<menuitem
text="menu1"/>
<menuitem
text="menu2"/>
</menu>
</menuitem>
<menuitem text="Exit" />
<menuseparator/>
<menuitem text="Logout" />
</menu>
<menu text="Report" width="100">
<menuitem text="menu1">
<menu name="submenu">
<menuitem
text="menu1"/>
<menuitem
text="menu2"/>
<menuitem
text="menu3"/>
</menu>
</menuitem>
<menuitem text="menu2">
<menu name="submenu">
<menuitem
text="menu1"/>
<menuitem
text="menu2"/>
<menuitem
text="menu3"/>
</menu>
</menuitem>
</menu>
<menu text="Admin" width="200">
<menuitem text="menu1"/>
<menuitem text="menu2"/>
</menu>
<menu text="Help" width="200">
<menuitem text="Online Help"/>
<menuitem text="About"/>
</menu>
</menubar>
<view align="right">
<simplelayout axis="x" spacing="0"/>
<text><b>Welcome my dear user</b>,
</text>
<text id="clock" width="150"/>
</view>
</view>
<view name="contentarea" width="100%" height="100%"
bgcolor="#a8005f">
<simplelayout axis="y" spacing="0"/>
<view width="100%" height="35%">
<window width="100%" height="100%"
title="Window 1" resizable="true" closeable="true">
</window>
</view>
<view width="100%" height="65%">
<window width="100%" height="100%"
title="Window 2" resizable="true" closeable="true">
</window>
</view>
</view>
</window>
</canvas>
-----Original Message-----
From: Benjamin Shine [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 23, 2007 1:52 AM
To: Ong Leong Seng
Cc: Laszlo Users
Subject: Re: [Laszlo-user] Empty space around <WINDOW>
Can you post your code so far?
On May 21, 2007, at 11:42 PM, Ong Leong Seng wrote:
> Hi all,
>
> I declare two windows in a view. I realize that the are padding
> around the window.
>
> I did set the height for 1st window at 65%,second window at 35% and
> both width to 100%. Then I try to set xoffset and yoffset to 0 but
> it doesn't help. The empty space still around.
>
> Anyone has any idea to solve this? What I need is to make no empty
> space around window.
>
> Thank you.
>
> Cheers,
> James
>
>
>
> ------------------------------------------------------------------
> -
> -
> -
> DISCLAIMER:
>
> This e-mail (including any attachments) may contain confidential
> information. If you are not the intended recipient, you are hereby
> notified that any dealing, review, distribution, printing, copying
> or use of this e-mail is strictly prohibited. If you have received
> this email in error, please notify the sender or MIMOS Berhad
> immediately and delete the original message. Opinions, conclusions
> and other information in this e-mail that do not relate to the
> official business of MIMOS Berhad and/or its subsidiaries shall be
> understood as neither given nor endorsed by MIMOS Berhad and/or its
> subsidiaries and neither MIMOS Berhad nor its subsidiaries accepts
> responsibility for the same. All liability arising from or in
> connection with computer viruses and/or corrupted e-mails is
> excluded to the fullest extent permitted by law.
>
Benjamin Shine
Software Engineer, Open Laszlo / Laszlo Systems
[EMAIL PROTECTED]
------------------------------------------------------------------
-
-
-
DISCLAIMER:
This e-mail (including any attachments) may contain confidential
information. If you are not the intended recipient, you are hereby
notified that any dealing, review, distribution, printing, copying
or use of this e-mail is strictly prohibited. If you have received
this email in error, please notify the sender or MIMOS Berhad
immediately and delete the original message. Opinions, conclusions
and other information in this e-mail that do not relate to the
official business of MIMOS Berhad and/or its subsidiaries shall be
understood as neither given nor endorsed by MIMOS Berhad and/or its
subsidiaries and neither MIMOS Berhad nor its subsidiaries accepts
responsibility for the same. All liability arising from or in
connection with computer viruses and/or corrupted e-mails is
excluded to the fullest extent permitted by law.