Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

Tabbed Panels/Tabs via Resource Strings

$
0
0

Is it not possible to create Tabbed Panels and Tabs using a resource string?

 

On both CS5 and CS6 this works:

 

 

var win = new Window ("dialog","Tab Test");

win.matchtabs=win.add("tabbedpanel");

win.matchtabs.taba=win.matchtabs.add("tab",undefined,"Match #1");
win.matchtabs.tabb=win.matchtabs.add("tab",undefined,"Match #2");

win.show();

 

but this:

 

var res= "dialog { matchtabs: TabbedPanel { taba: Tab { text: 'Match #1' }, tabb: Tab { text: 'Match #2' } } }";

var win = new Window (res,"Tab Test");

win.show();

 

fails with "Error 19: ... TabbedPanel is not an object" , again both on CS5 and CS6.

 

Thanks for any insight.


Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>