PDA

View Full Version : Regarding of aligning


Javern
07-05-2006, 09:36 PM
Hi i somehow got stuck with some part of my coding.
I wanted to actually doing a webmail and was trying to align all the textbox to one straight line so it will look neater.Can some one help me with the code?
i need help to align the submit button also.
thanks alot for your help

<canvas height="1200" width="900" >


<window x="0" y="20" width="${parent.width}" height="250"
title="Sign Up" resizable="true" closeable="true">
<simplelayout axis="y" spacing="10"/>
<text><b>Sign In To Your Email Account</b></text>

<view layout="axis:x;spacing:7" align="center">
<text>Email Address: </text><edittext name="myText" x="0" y="3" width="100" ></edittext>
</view>

<view layout="axis:x;spacing:3" align="center" >
<text>Password: </text><edittext name="myText" x="0" y="3" width="100"></edittext>
</view>
<button onclick="canvas.myalert.open()">Sign In </button>



</window>
</canvas>

ebrentnelson
07-06-2006, 08:03 AM
You can put all your UI objects in a parent view, align them all left and then align the parent view centered.


<view align="center">
<view align="left"/>
<view align="left"/>
<button align="left"/>
</view>


Try using a pattern like that...

Let us know how that works for you...

ebn