Skip to main content
September 3, 2007
Question

Unable to add more controls on PreferencesDialog

  • September 3, 2007
  • 2 replies
  • 453 views
Hi

I am creating a new panel on Bridge's Preferences. I use the PreferencesDialog object but I am able to create only a single control on it. The following lines:

var cbOne = panel.add( "checkbox", [50, 50, 200, 100], "First");
var cbTwo = panel.add( "checkbox", [150, 150, 200, 100], "Second");

show only the first one. The same happens for every control (panels, etc.). Only the first control is shown.

I used the SnpAddPreferencesPanel.jsx sample on the Bridge CS3 SDK, adding only a second checkbox.

Anyone tried to do something similar and worked? I have forgotten to add something else in code?

Thank You for the help!
This topic has been closed for replies.

2 replies

September 5, 2007
Thank You!

Was a coordinate problem I didn't spotted...!
Known Participant
September 3, 2007
Try:

var cbOne = panel.add( "checkbox", [50, 50, 100, 100], "First");
var cbTwo = panel.add( "checkbox", [150, 50, 200, 100], "Second");

-X