PDA

View Full Version : how to open the tab by click on button?


mohan
09-13-2003, 06:39 AM
Hai Antun.

I want to make tab of tabslider should open, if I clicked on the button (button is out of the tab slider or with in the tabslider of the another tab).How can I do above in laszlo.

With regards,
Rudresh

antun
09-15-2003, 09:20 AM
See this thread:

http://www.laszlosystems.com/developers/community/forums/showthread.php?s=&threadid=338&highlight=tabslider+opentab

You can call the openTab() method as follows:


<canvas debug="true">
<include href="lz/tabslider.lzx" />
<simplelayout axis="y" />
<button>
<method event="onclick">
mytab.openTab( mytab.one, true );
</method>
</button>
<tabslider bgcolor="yellow" width="100"
height="200" mintabheight="40"
spacing="2" slideduration="300"
name="mytab">
<tabelement name="one" bgcolor="red" width="100%" />
<tabelement name="two" bgcolor="red" width="100%" />
<tabelement name="three" bgcolor="red" width="100%" />
</tabslider>
</canvas>


-Antun