This would work, but there should be a better way.

I ran into the same thing with tabelement (confusingly used with tabslider, not tabpane), and the solution there was to override setSelected, which of course is given a parameter with the new selected value. Unfortunately, the setter for tabpane.selected is private (_setSelected) -- this is possibly a bug -- so that technique won't work for tabpane.

jim

On Nov 15, 2005, at 8:19 AM, Gregory Higgins wrote:

Create a marker attribute for the tabpane, set it off.

 

when ontabselected fires, if the marker attribute is off, turn it on and execute the code; if it’s on, turn it off and don’t execute the code.

--
Greg Higgins
ABLsaurus Rex
 


From:  Tim Patsch

No dice on that.  Can't have the code firing on each mouse over.  Code is resource intensive.  Need for it to fire only on visiting the tab.  Is there a reason onselected fires twice?  Shouldn't it only fire when the tab is selected and not when another tab is selected?

 

If this is a bug, does anyone know of a work around? 

_______________________________________________
Laszlo-user mailing list

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to