[Laszlo-dev] documentation for constraints

Lou Iorio liorio at laszlosystems.com
Thu May 22 11:53:59 PDT 2008


I'm looking at LPP-2037.

I'd like to provide a simple example that illustrates the different  
values for
constraints in tags, something like this:

<canvas>
     <view x="250" width="20" height="20" bgcolor="red" y="$once{m.y}"/>
     <view x="280" width="20" height="20" bgcolor="blue"  
y="$immediately{m.y}"/>
     <view x="310" width="20" height="20" bgcolor="green" y="$always 
{m.y}"/>
     <window id="m" x="10" title="Drag me" width="160" height="20"/>
</canvas>

I don't understand the difference between "once" and "immediately",  
and this
example doesn't illustrate the difference.

What's the difference, and is there a better example I can use?

Thanks,

Lou


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20080522/524f0ef8/attachment.html


More information about the Laszlo-dev mailing list