4 Replies Latest reply on May 8, 2009 8:47 AM by DonorTracker

    is there a script command to scroll left or right?

    DonorTracker

      Title

      is there a script command to scroll left or right?

      Post

      I see that scriptmaker has a scroll command, but it appears only to contol up and down scrolling.

       

      Is there any magic command to scroll my window left or right?  (I have two layouts that are easier to use if scrolled right; the rest of my layouts are happier scrolled to the left.)  Thanks!

        • 1. Re: is there a script command to scroll left or right?
          philmodjunk
            

          This might work:

           

          Put a "named object" or field at the extreme left and right of your layout.

           

          Use go to object or go to field and specify the extreme right object/field to scroll to the right.

           

          Use another go to field or go to object to leave that object and put the cursor in a place where the user expects.

           

          Do the same but specify the left object to scroll the other direction.

           

          I know it's clumsy, but I can't think of any alternatives.

          • 2. Re: is there a script command to scroll left or right?
            DonorTracker
              

            I tried going to a field -- and that did scroll -- but left a lot of collateral damage on the screen: multiple text boxes selected.

             

            I can't get a named object to work. I created a button that does nothing and used the info panel to name it righto with no quotes.

             

            With the go to object script command I'm referring to it as "righto". Is that correct, with the quotes? Unfortunately it doesn't scroll right.

            • 3. Re: is there a script command to scroll left or right?
              philmodjunk
                

              "I tried going to a field -- and that did scroll -- but left a lot of collateral damage on the screen: multiple text boxes selected."

              Multiple text boxes? That's not possible. You can only edit one field at a time. Neither "go to field" nor any other method scripted or manual can select multiple fields. If the script leaves the cursor in a field, the field borders may change appearance to show that you are editing the field if the "Show field frames when record is active" option is selected for your layout. Since this is the default setting for a new layout, it probably is. I predict you'll see exactly the same thing if you just enter a field manually by clicking on a field or pressing the tab key. If you don't want that affect, you can either change this setting for your layout, (It's a check box in Layout Setup...) or try Go To Field [] without any field selected.

               

              I just tried using go to object to set the focus on a named button and haven't had any luck with that either.

              • 4. Re: is there a script command to scroll left or right?
                DonorTracker
                   Thanks for that explanation. It was a weird effect to see the field borders appear on three text boxes.