Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

Is it possible to script a tabbed ui?

$
0
0

Is it possible to script a tabbed ui like this, i can't seem to get it to work, please help...

 

Cheers Daniel.

 

 

My script for now:

 

#target illustrator

tabbed_ui();

 

//Functions

function tabbed_ui(){

   

    res =

    "dialog {text:'Adres database:', properties:{resizeable:false }, \

        maintabpanel: TabbedPanel { text:'', \

            subtab1panel: Tab { text:'Tab1', \

            }, \

            subtab2panel: Tab { text:'Tab2', \

            }, \

        }, \

    }";

   

    wininfo = new Window (res);

    wininfo.frameLocation = [100, 100];

    wininfo.margins = 0;

   

    // Control Escape key

    wininfo.addEventListener('keydown', function (k) { 

        if (k.keyName == 'Escape') {

            wininfo.close();

        }

    });

 

    wininfo.center();

    wininfo.show();

};


Viewing all articles
Browse latest Browse all 12845

Trending Articles



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