Skip navigation
Currently Being Moderated

TabbedPanel not showing up in custom palette

Oct 31, 2011 10:01 AM

Tags: #palette #tabbedpanel

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();

 
Replies
  • Currently Being Moderated
    Oct 31, 2011 10:21 AM   in reply to bduffy323

    The code works for me in CS5 on the Mac. Are you for sure running it in a persistent engine (#targetengine "whatever")?

     

    Jeff

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 1, 2011 2:39 AM   in reply to bduffy323

    I just tested your code ok in InDesign CS5.5 (7.5.2) on Mac OS X 10.6.8. A bug in the windows version perhaps?
    Provided the #targetengine statement is present, of course.

     

    Uwe

     
    |
    Mark as:
  • John Hawkinson
    5,515 posts
    Jun 25, 2009
    Currently Being Moderated
    Nov 5, 2011 3:46 PM   in reply to Laubender

    Uwe suggested:

     

    A bug in the windows version perhaps? Provided the #targetengine statement is present, of course.

    Works fine for me under CS5.5 in Windows.

    Perhaps bduffy323, you should reset your preferences.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points