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 06-30-2004, 04:06 PM
antun antun is offline
Forum Administrator
 
Join Date: Jun 2002
Location: San Francisco
Posts: 1,678
antun is on a distinguished road
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>
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
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


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.