Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    #31
    Use this pattern

    Code:
    isc.defineClass("TabBarA", TabBar);
    if (isc.TabBarA)
    {
    	isc.TabBarA.addProperties
            ({
    	    	...
    	});
    }
        
    isc.defineClass("TabSetA", TabSet);
    if (isc.TabSetA) 
    {
        isc.TabSetA.addProperties
        ({
                paneContainerClassName: "xxxx",
                tabBarConstructor: isc.TabBarA
        });
    }
    
    
    isc.defineClass("TabBarB", TabBar);
    if (isc.TabBarB)
    {
    	isc.TabBarB.addProperties
            ({
    	    	...
    	});
    }
        
    isc.defineClass("TabSetB", TabSet);
    if (isc.TabSetB) 
    {
        isc.TabSetB.addProperties
        ({
                paneContainerClassName: "yyyy",
                tabBarConstructor: isc.TabBarB
        });
    }

    Code:
    tabSet1.setScClassName("TabSetA");
    tabSet2.setScClassName("TabSetB");

    Comment


      #32
      Here is the corected version. :)

      Code:
      	isc.defineClass("ImgTabProcess", ImgTab);
      	...
      Silly mistake:
      TabBar as base class was used instead ImgTab for the new ImgTabProcess class

      Cheers,
      Marius

      Comment

      Working...
      X