Hi ,
i am pretty new to open laszlo .
i am trying to build a sample application that will add a new button to the
form / window when i cilck on a button .
my question here is that how can i add a new button to the form dynamically
to the existing set of collection . ie. i have button 1 to button5 when i
click on the resource add_body i would like to add button6
is it possible in laszlo ?
---code ---
<canvas height="300" width="500">
<resource name="add_body" src="add_button.gif"/>
<window x="20" y="20" width="150" title="Collection"
resizable="false">
<view name="add" resource="add_body" placement="header" width="10"
height="12" x="100" y="5"/>
<view>
<view>
<simplelayout axis="y" spacing="2"/>
<button width="150" style="{basecolor:0xffffff}" font="bold"
>button1</button>
<button width="150" style="{basecolor:0xffffff}"
>button2</button>
<button width="150" style="{basecolor:0xffffff}"
>button3</button>
<button width="150" style="{basecolor:0xffffff}"
>button4</button>
<button width="150" style="{basecolor:0xffffff}"
>button5</button>
</view>
</view>
</window>
</canvas>
thanks in advance
--CG