Alignment and Size Palette Button Functions

Use the Alignment and Size palette buttons (the bottom row of buttons when all three rows are displayed) to arrange your controls on the form. These buttons enable you to align and size your controls. The Painter Alignment and Size palette buttons are listed in the following table, with a reference to the sections earlier in this chapter that provide more details.

Button Description For details, see…
Aligns selected controls to the bottom edge of master control Bottom Command
Aligns selected controls to the top edge of master control Top Command
Aligns selected controls to the left edge of master control Left Command
Aligns selected controls to the right edge of master control Right Command
Centers the selected controls vertically Centre Vertically Command
Centers the selected controls horizontally Centre Horizontally Command
Makes all selected controls the same width Same Width Command
Makes all selected controls the same height Same Height Command
Makes all selected controls the same height and width Same Height and Width Command
Resizes all selected controls to the dialog units of the application Standard Size Command
Spaces selected controls evenly across the container Space Evenly Across Command
Spaces selected controls evenly down the container Space Evenly Down Command
Spreads selected controls evenly across the entire container Spread Across Container Command
Spreads selected controls evenly down the entire container Spread Down Container Command
Makes selected controls horizontally adjacent Horizontally Adjacent Command
Makes selected controls vertically adjacent Vertically Adjacent Command
Automatically spaces controls vertically Vertical Standard Spacing Command
Automatically spaces controls horizontally Horizontal Standard Spacing Command
Positions command buttons at top right Top/Right Command Buttons Command
Positions command buttons at bottom right Bottom/Right Command Buttons Command

Most of the alignment and size buttons action a group of controls. In some cases, alignment or sizing is relative to a master control (which has sizing handles).