PDA

View Full Version : Can someone explain why my component looks all funky?


esc_oblivion
05-10-2004, 11:24 AM
Here's a screenshot of my component, and the code that's creating it. I'm curious about a few things. Like, why isn't the top level? And why are some of the components blurring rather than seamlessly stretching? And why are their (1) pixel wide breaks between components? And how do I control the layout of the whole window...

As you can see the middle is doing it's own thing, as is the bottom...

The code:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE canvas SYSTEM "http://www.laszlosystems.com/lps/tools/lzx.dtd" >

<canvas width="800" height="600">


..<view name="abesWindow" x="10" y="10" width="800" height="600" clickable="true">

........<simplelayout axis="y" />

..............<view name="topRow" width="${parent.width}">
..................<view name="topLeft" resource="images/window_tl.swf" x="0" y="10" />
..................<view name="topCenter" resource="images/window_label.swf" ......x="${parent.topLeft.width}" y="10"
......width="${parent.width - parent.topLeft.width
......- parent.topRight.width}" stretches="width" />
..................<view name="topRight" resource="images/window_tr.swf"
........................x="${parent.width - parent.topLeft.width - parent.topCenter.width}" y="10" />
..................</view>

..............<view name="body" width="${parent.width}">
.................<view name="leftSide" resource="images/window_ml.swf" />
.................<view name="content" resource="images/window_middle.swf" />
.................<view name="rightSide" resource="images/window_mr.swf" />
.................<stableborderlayout axis="x" />
...............</view>

..............<view name="bottomRow" width="${parent.width}">
..................<view name="bottomLeft" resource="images/window_bl.swf" />
..................<view name="bottomCenter" resource="images/window_bm.swf"
.......................x="${parent.width - parent.bottomLeft.width - parent.bottomRight.width}" stretches="width" />
..................<view name="bottomRight" resource="images/window_br.swf" />
.............</view>
........</view>
</canvas>

I appreciate your guidance! Regards, Abe

antun
05-10-2004, 11:26 AM
Could you post the LZX code too?

-Antun