Go Back   OpenLaszlo Developers Forums > Non-programming help and discussions > Development Tools and Practices

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
Prev Previous Post   Next Post Next
  #1  
Old 05-08-2003, 04:04 PM
antun antun is offline
Forum Administrator
 
Join Date: Jun 2002
Location: San Francisco
Posts: 1,678
antun is on a distinguished road
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>
Enjoy!
__________________
http://www.antunkarlovac.com/blog/

Try out Webtop today:
http://www.gowebtop.com/
Reply With Quote
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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


All times are GMT -8. The time now is 12:18 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.