Créer une bordure dynamique avec OpenLaszlo
Vous pouvez utiliser <stableborderlayout>
pour créer une bordure dynamique.
<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>
Ressource en anglais sur le forum OpenLaszlo ici