|
|||||||
| Development Tools and Practices Questions about development tools and practices. An appropriate place to talk about text editors, IDEs, and anything else that makes your development life easier. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Circular Constraints
Laszlo resolves circular constraints very well. In the following example the red view's y attribute is constrained to the blue view's y attribute, and vice versa:
Code:
<canvas>
<view name="redview" bgcolor="red"
onmousedown="ds.apply()" onmouseup="ds.remove()"
width="40" height="40" y="blueview.y">
<dragstate name="ds"/>
</view>
<view name="blueview" bgcolor="blue"
onmousedown="ds.apply()" onmouseup="ds.remove()"
width="40" height="40" y="redview.y">
<dragstate name="ds"/>
</view>
<simplelayout spacing="40" axis="x"/>
</canvas>
__________________
http://www.antunkarlovac.com/blog/ Try out Webtop today: http://www.gowebtop.com/ |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| JavaRPC avoids circular reference issues? | moraleslos | General Help | 0 | 02-25-2007 10:38 AM |
| Dynamically creating constraints with semi working example | spoco2 | General OpenLaszlo Programming | 0 | 04-26-2006 06:54 PM |
| Can one inspect constraints? | spoco2 | General OpenLaszlo Programming | 0 | 04-25-2006 08:26 PM |
| size constraints do not work | band1 | General OpenLaszlo Programming | 1 | 11-09-2005 11:28 PM |
| Constraints with Variable Targets | antun | Development Tools and Practices | 3 | 12-02-2003 09:41 AM |