kipsta
11-07-2004, 09:16 AM
I have a basetabslider inside of a custom class objects. The slider includes several instances of a custom class that extends basetabelement. Inside the slider I have an oninit() event that sets the first tabelement as the current tab, and this works perfectly if I have one of these sliders in a view.
But, if I put more than one of these inside a view, only the last one created gets it's tab set correctly. Adding a Debug.write() to the oninit() event, I can see that the event is infact firing correctly on all the objects, and if you put a debug statement to check the current selection for the slider, it reports that the right tab is selected, but it still isn't selected.
Am I missing something or is there a bug in the selection code of the bastabslider that only allows one slider to be utilized correctly.
As a side note, after all objects are loaded, if I then select a tab on one of the incorrectly loaded objects, it all works correctly. So the problem seems to just be with setting the initial one.
Any ideas would be greatly appreciated
But, if I put more than one of these inside a view, only the last one created gets it's tab set correctly. Adding a Debug.write() to the oninit() event, I can see that the event is infact firing correctly on all the objects, and if you put a debug statement to check the current selection for the slider, it reports that the right tab is selected, but it still isn't selected.
Am I missing something or is there a bug in the selection code of the bastabslider that only allows one slider to be utilized correctly.
As a side note, after all objects are loaded, if I then select a tab on one of the incorrectly loaded objects, it all works correctly. So the problem seems to just be with setting the initial one.
Any ideas would be greatly appreciated