PDA

View Full Version : View always on top


vijaysukumar
03-07-2006, 05:03 PM
I am trying to build a prototype calendar. The time separation is 15 minutes.

If you have a event more than 15 minutes , it goes underneath the next time interval view. Is there a way to have a view on top of a parent's sibling?

In the attached file the event should be on top the 9:30 timeline and not beneath it. How do I do this?

Thanks

vijaysukumar
03-07-2006, 05:21 PM
attached is the code that was used to create it.

<canvas debug="true">


<view x="20" y="20" width="500" name="myTable">
<simplelayout axis="y" />
<view width="800" height="25" bgcolor="#cccccc" >
<view x="1" y="1" bgcolor="white" width="43" height="${parent.height-2}">
<text width="43">9:00</text>
</view>
<view x="45" y="1" bgcolor="white" width="751" height="${parent.height-2}" >
<simplelayout axis="x" spacing="5"/>
<view bgcolor="#cccccc" fgcolor="white" height="60" clip="true">
<text>Appointment 1</text>
</view>
</view>
</view>

<view width="800" height="25" bgcolor="#cccccc" >
<view x="1" y="1" bgcolor="white" width="43" height="${parent.height-2}">
<text width="43">9:15</text>
</view>
<view x="45" y="1" bgcolor="white" width="751" height="${parent.height-2}" >
<simplelayout axis="x" spacing="5"/>

</view>
</view>
</view>



</canvas>




If somebody could help it would be great.
Thanks
Vijay

epitaph
03-09-2006, 08:19 PM
try giving the view a name or id. and then bring it to the front.
like this for example:


<method event="oninit">
viewId.bringToFront();
</method>