This example assumes each control is skinnier than the gallery. If you have a control that is wider than the gallery for some reason, you might have to alter the math a little bit.
Button1.X: 0
Button1 stays in place on the very left when you scroll
Label1.X: Button1.X + Button1.Width - Slider1.Value
Label1 starts to the right of Button1, and moves left when you increase the slider bar. Make sure the static control (Button1) is in front of the scrolling controls, and that the static control does not have a transparent fill.
TextInput1.X: Label1.X + Label1.Width
TextInput1 will always be directly to the right of Label1, and will move relative to Label1's movement
Dropdown1.X: TextInput1.X + TextInput1.Width
Dropdown1 will always be directly to the right of TextInput1, and will move relative to TextInput1 movement
Slider1.Max:
Option1: (Easier) = Label1.Width + TextInput1.Width
Leave off the last control (as long as it is skinnier than the gallery.Width - static control width)
Option2: (Cleaner) = Label1.Width + TextInput1.Width - (Gallery1.Width - (Button1.Width + DropDown1.Width)) +27
Make the slider stop when the end of the last control is in view (Prevent "overscrolling")
Gallery1.Width - (Button1.Width + Dropdown1.Width) calculates the space in the gallery between the static control and the last control when scrolled all the way to the right, making the scroll stop right when it hits the end of the right most control. If you don't have a static control, it would just be - (Gallery1.Width - RightMostControl.Width)
The +27 at the end gives it room for the vertical scroll bar so it doesn't cover up the end of your rightmost control.
Slider1.Default: 0

