Right-click a front panel object and select Scale Object with Pane from the shortcut menu to set the object to scale automatically when the pane resizes.
After you designate a single front panel object to scale automatically, gray lines outline several front panel regions. The regions define the positions of the other front panel objects in relation to the object you want to scale. When you resize the pane, the object you set to scale automatically resizes and repositions itself relative to its original location. The gray lines disappear when you run the VI.
To set an object not to scale with the pane, right-click the front panel object and select Scale Object with Pane from the shortcut menu to remove the checkmark.
You also can use the Set Scaling Mode method to set a single front panel object to scale programmatically.