5 Replies Latest reply on Nov 5, 2011 3:46 PM by John Hawkinson

    TabbedPanel not showing up in custom palette

    bduffy323 Level 1

      I am trying to create a tabbedPanel within a palette. Below is my code. When I execute the script the window does not show up. If I change the window type from palette to dialog, the window shows up as expected with the three tabs. What could be the reason for this?

       

      var myDialog = new Window('palette', "test");

                myDialog.margins = 2;

                myDialog.spacing = 2;

       

       

                var tPanel = myDialog.add('tabbedpanel',undefined,"");

                tPanel.add('tab',undefined,"one");

                tPanel.add('tab',undefined,"two");

                tPanel.add('tab',undefined,"three");

       

                var myReturn = myDialog.show();