4 Replies Latest reply on Sep 3, 2014 2:37 AM by eboda_snaf

    scriptUI design help

    eboda_snaf Level 1

      Hi there,

      i'm using a panel to group the two up/down buttons but they looked soo weird..

      i need them to look like the "ideal" pic attached..

      Please advise.

       

      Thanks so much..

       

      buttons.jpg

        • 1. Re: scriptUI design help
          Sajeev Sridharan Level 4

          I tried it is working fine for me...

           

          Try the below code for your reference,

           

          var w = new Window ("dialog");
          w.orientation = "row";
          var up = File ("/d/icon/up.png")
          var down = File ("/d/icon/down.png")
          myPanel = w.add ("panel");
          var iconGroup = myPanel.add ('group {orientation: "column"}');
          iconGroup.add ("iconbutton", undefined, up);
          iconGroup.add ("iconbutton", undefined, down);
          w.show ();
          

           

           

          Vandy

          • 2. Re: scriptUI design help
            eboda_snaf Level 1

            thanks for replying

            However, your script looks almost like mine which is not what i want.

             

            my ideal design is having the up/down buttons aligned just besides to and with the size almost as the edittext.

            Also the border line of the button group should be not be visible.

            • 3. Re: Re: scriptUI design help
              Sajeev Sridharan Level 4

              Try this,

               

              var w = new Window ("dialog");
              w.orientation = "row";
              var up = File ("/d/icon/up.png")
              var down = File ("/d/icon/down.png")
              var myText = w.add ("edittext", [0, 0, 50, 70], "", {multiline: false, wantReturn: false});
              var iconGroup = w.add ('group {orientation: "column"}');
              iconGroup.add ("iconbutton", undefined, up);
              iconGroup.add ("iconbutton", undefined, down);
              w.show ();
              

               

              For clear solution, please post your code as well...

               

              Vandy

              • 4. Re: Re: scriptUI design help
                eboda_snaf Level 1

                this works!!

                 

                Thank you soo much...