OpenLaszlo and HTML example for comparison:

This is based on ulink-test.lzx, I simply called it ulink-test2.lzx and
placed in the incubator/test folder. Note that the ulink text is clipped,
but I want it to wrap. I have tried this with view layout axis x and and
vbox.

<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
* Copyright 2005 Laszlo Systems, Inc. All Rights Reserved.
*
* Use is subject to license terms.
*
* X_LZ_COPYRIGHT_END ******************************************************
-->
<!-- @LZX_VERSION@
-->

<canvas layout="axis: y">
  <include href="incubator/ulink.lzx"/>
  <include href="incubator/tooltip/tooltip.lzx"/>
  
  <dataset name="ds">
    <link name="OpenLaszlo.org" href="http://openlaszlo.org"/>
    <link name="Go to LaszloSystems" href="http://laszlosystems.com"/>
    <link name="BlogBox.com" href="http://blogbox.com"/>
  </dataset>
  
  <vbox options="ignorelayout" x="150" bgcolor="red" width="100"
clip="true">
    <text multiline="true"><i><u>Go to LaszloSystems.com</u></i></text>
    <ulink bgcolor="green" width="100" datapath="ds:/link"
text="$path{'@name'}" href="$path{'@href'}">
      <tooltip text="$path{'@href'}"/>
    </ulink>
  </vbox>
</canvas>


HTML example for comparison in which the link text wraps within the div.

<html><body><h1>It works!</h1>

<div style="background:red;width:100px;">
<a href="http://laszlosystems.com"/>Go to LaszloSystems</a>
</div>
</body></html>


Gary Schultz
 

-----Original Message-----
From: Matthew Cloy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 01, 2007 1:38 AM
To: Schultz, Gary - COMM
Cc: '[email protected]'
Subject: Re: [Laszlo-user] Openlaszlo box model?

Hi Gary,

So... AFAIK,

Coordinates are always relative to the parent view. (This means all sibling
views retain the same coordinate system). This is after any "placement" or
"defaultplacement" changes to the view hierachy.

A view is "clipped" if you specify the clipped="true" flag on it. If not
clipped then even though the view may be 10 units wide, a larger view will
"spill" out visually.

I think that as far as rendering the views is concerned, there's no other
rules to take into account. There isn't really a "box" model as all views
are just One rectangular area.

If you have an example of where you're getting confused that might help...

Of course if you add a layout into your view it will arrange the views
accordingly, but the coordinate system for each still stays the same.

Cheers!
Matt

Schultz, Gary - COMM wrote:
> I should have added that there is some urgency to this. If I cannot 
> get OpenLaszlo to perform as needed for the web project by the end of 
> this week, my boss is pulling the plug on using Openlaszlo and that 
> will pretty much end any future OpenLaszlo development in our agency.
>  
> Gary Schultz
> Wisconsin Department of Commerce
>
>
------------------------------------------------------------------------
>     *From:* [EMAIL PROTECTED]
>     [mailto:[EMAIL PROTECTED] *On Behalf Of
>     *Schultz, Gary - COMM
>     *Sent:* Wednesday, January 31, 2007 3:36 PM
>     *To:* '[email protected]'
>     *Subject:* [Laszlo-user] Openlaszlo box model?
>
>     Is there any resource that helps describe the OpenLaszlo "Box
>     Model", something similar to the CSS box model. I'm having a very
>     hard time trying to figure out when Openlaszlo renders something
>     such as a view in an "absolute" position versus a "relative"
>     position to another view. I have situations where I think
>     something should be relative it ends up being absolute and
>     text renders outside a containing view.
>      
>     I'm trying to implement OpenLaszlo for a web project, but honestly
>     have spent way too much time trying too learn it and use it. But
>     since I'm as far as I am, I figure I might as well go with
>     OpenLaszlo. But the positioning of views, text etc. is driving me
>     nuts.
>      
>     Gary Schultz
>     Wisconsin Department of Commerce
>

Reply via email to