How to put a scroll inside my tabs content?


here code:

 

{     function myscript(thisobj){         function myscript_buildui(thisobj){             var mypanel = (thisobj instanceof panel) ? thisobj : new window("palette","panel estudio voraz",undefined,{resizable:true});             mypanel.layout.resize();  res = "group{orientation:'column',margins: 0, spacing: 0,\                       alignment: ['fill', 'fill'], alignchildren: ['fill', 'top'],\                           mytabbedpanel: panel{type:'tabbedpanel',\                                 mytab1: panel{type:'tab', text:'salidas',margins: [4,8,4,8], spacing: 5, alignchildren: ['fill', 'center'],\                                  },\                mytab2: panel{type:'tab', text:'plecas',\                   imagewip: iconbutton{text:'wip',alignment:['top','top'], preferredsize:[372,180]},\                },\                mytab3: panel{type:'tab', text:'stings',\                   imagewip: iconbutton{text:'wip',alignment:['top','top'], preferredsize:[372,180]},\                },\                mytab4: panel{type:'tab', text:'menus',\                   imagewip: iconbutton{text:'wip',alignment:['top','top'], preferredsize:[372,180]},\                },\                mytab5: panel{type:'tab', text:'wipers',\                  imagewip: iconbutton{text:'wip',alignment:['top','top'], preferredsize:[380,180]},\                },\            },\ }";                mypanel.grp = mypanel.add(res);             mypanel.grp.spacing= 0     mypanel.grp.mytabbedpanel.onchange = function(){       var selectedtab = this.selection;       alert(selectedtab.text);    //alerts name of tab clicked       alert(selectedtab.reflect.properties);//alerts property options available tab object       switch(selectedtab.selection.text){           case "salidas":     //if salidas clicked...                                       mypanel.grp.mytabbedpanel.mytab1.ddpanel.selection = 0                                break;            case "plecas":     //if plecas clicked...                         mypanel.grp.mytabbedpanel.mytab1.ddpanel.selection = 0                                    break;            //and on other tabs have.            default:           break;               } }      //end panel    --------------------------- no poner nada abajo de esta lÍnea -------------------------------             return mypanel;                 }                           var myscriptpal = myscript_buildui(thisobj);                 if((myscriptpal != null) && (myscriptpal instanceof window)){             myscriptpal.center();             myscriptpal.show();     }   } myscript(this); } 



More discussions in After Effects Scripting


adobe

Comments

Popular posts from this blog

Soustraire une selection

After Effects: could not find dvaeve_dialogs.txt

Illustrator cs6 "Invalid Serial Number"