Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Group inside a Tabbed Panel?

Participant ,
Sep 27, 2017 Sep 27, 2017

is it possible to create a MasterGroup inside a Tabbed Panel? and then split my content from each tab into Rows with different elements aligned at the top


TabbedPanelWithGroups.png

This is the part of the Script I'm working on, I've tried everything to change the contents of the Tab to individual Rows and nothing works.
I try to create a new group inside tab1 and I also get an Error.

{

function myScript(thisObj) {

   

        var textStr = "Teste";

   

          function myScript_buildUI(thisObj) {

                    var myPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette", "My Panel Name", "undefined");

                    res= "group{orientation:'column', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\

                              myIconButton: IconButton{text:'IconButton', image:'~/Desktop/atr_logo.png', alignment:['left', 'top'] },\

                              myTabbedPanel: Panel{type:'tabbedpanel', text:'', orientation:'column', alignChildren:['left', 'fill'],\

                                  myTab1: Panel{type:'tab', text:'Main Title', orientation:'row', alignChildren:['left', 'top'],\

                                  myStaticText31: StaticText{text:'', orientation:'column', alignment:['left', 'top']},\

                                  myStaticText32: StaticText{text:'Type Main Title Here', orientation:'column', alignment:['left', 'top']},\

                                      myEditText: EditText{text:'', orientation:'column', alignment:['left', 'top'], bounds : [0,0,150,50], properties : {multiline : true}, },\

                                      aButton1: Button{text:'Button1',orientation:'row',alignment:['left', 'top']},\

                                      aButton8: Button{text:'Button8',orientation:'column', alignment:['left', 'top']},\

                                      mySlider: Slider{text:'mySlider3', },orientation:'column',\

},\

                                  myTab2: Panel{type:'tab', text:'Main Box', orientation:'column', alignChildren:['left', 'center'],\

                                      aButton2: Button{text:'Button2'},\

                                  },\

                                  myTab3: Panel{type:'tab', text:'Top Title', orientation:'column', alignChildren:['left', 'center'],\

                                      aButton3: Button{text:'Button3'},\

                                  },\

                                  myTab4: Panel{type:'tab', text:'Left Title', orientation:'column', alignChildren:['left', 'center'],\

                                      aButton4: Button{text:'Button4'},\

                                  },\

                                  myTab5: Panel{type:'tab', text:'Right Title', orientation:'column', alignChildren:['left', 'center'],\

                                      aButton5: Button{text:'Button5'},\

                                  },\

                                  myTab6: Panel{type:'tab', text:'Bottom Title', orientation:'column', alignChildren:['left', 'center'],\

                                      aButton6: Button{text:'Button6'},\

                                  },\

                                  myTab7: Panel{type:'tab', text:'Outer Box', orientation:'column', alignChildren:['left', 'center'],\

                                      aButton7: Button{text:'Button7'},\

                                  },\

                                                                      },\

                    }"

                

                    //Add resource string to panel

                    myPanel.grp = myPanel.add(res);




ps. Sorry for my child's drawing style, I did it very fast ..


TOPICS
Scripting
551
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 30, 2017 Sep 30, 2017
LATEST

Hi Aloha

You can do that with new groups inside the tab.

Like this code:

"group{orientation:'column', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\

myIconButton: IconButton{text:'IconButton', alignment:['left', 'top'] },\

myTabbedPanel: Panel{type:'tabbedpanel', text:'', orientation:'column', alignChildren:['left', 'fill'],\

    myTab1: Panel{type:'tab', text:'Main Title', orientation:'row', alignChildren:['left', 'top'],\

tab01Grp1: Group{orientation:'column',alignChildren:['left', 'top'],\

    myStaticText32: StaticText{text:'Type Main Title Here'},\

  myEditText: EditText{text:'', bounds : [0,0,150,50], properties : {multiline : true}, },\

},\

tab01Grp2: Group{orientation:'column',\

  aButton1: Button{text:'Button1',alignment:['left', 'top']},\

  aButton8: Button{text:'Button8', alignment:['left', 'top']},\

},\

  mySlider: Slider{text:'mySlider3'},\

},\

    myTab2: Panel{type:'tab', text:'Main Box', orientation:'column', alignChildren:['left', 'center'],\

  aButton2: Button{text:'Button2'},\

    },\

    myTab3: Panel{type:'tab', text:'Top Title', orientation:'column', alignChildren:['left', 'center'],\

  aButton3: Button{text:'Button3'},\

    },\

    myTab4: Panel{type:'tab', text:'Left Title', orientation:'column', alignChildren:['left', 'center'],\

  aButton4: Button{text:'Button4'},\

    },\

    myTab5: Panel{type:'tab', text:'Right Title', orientation:'column', alignChildren:['left', 'center'],\

  aButton5: Button{text:'Button5'},\

    },\

    myTab6: Panel{type:'tab', text:'Bottom Title', orientation:'column', alignChildren:['left', 'center'],\

  aButton6: Button{text:'Button6'},\

    },\

    myTab7: Panel{type:'tab', text:'Outer Box', orientation:'column', alignChildren:['left', 'center'],\

  aButton7: Button{text:'Button7'},\

    },\

                                                          },\

}"

Let me know if this works

Cheers

Henrique

Henrique \\ TMMW
Clips Exporter | Text Replacer | Selector for Premiere Pro | Thumbs Up
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines