|
|||||||
| 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
|
|||
|
|||
|
Using stableborderlayout
You can use stableborderlayout to have two views maintain their widths while a central view stretches to fill the space:
Code:
<canvas>
<view width="300" height="200" id="widebox">
<stableborderlayout axis="x" />
<view width="10" height="${parent.height}" bgcolor="red" />
<view height="${parent.height}" bgcolor="blue" />
<view width="10" height="${parent.height}" bgcolor="red" />
</view>
<button y="220">Make wider
<method event="onclick">
widebox.setWidth( widebox.width + 5 );
</method>
</button>
</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 |
| stableborderlayout - ignores middle view | piccione99 | General OpenLaszlo Programming | 0 | 12-11-2006 09:10 AM |
| Strange behavior in StableBorderLayout | davidnia1 | General OpenLaszlo Programming | 2 | 08-18-2005 11:50 AM |