FA_* Values

The following table shows the FA_* values and how each affects alignment of controls.

Value
Description
FA_BOTTOM Specifies that the bottom edge of the control is located at the bottom of a form.
FA_BOTTOM_CONTROL Aligns the bottom edge of one control with the bottom edge of another control.
FA_BOTTOM_CONTROL_FRACTION Specifies the bottom edge of a control as a percentage of the vertical bounds of another control. Use an integer to express the percentage.
FA_BOTTOM_FRACTION Specifies the bottom edge of a control as a percentage of the bottom of its parent form. Use an integer to express the percentage.
FA_BOTTOM_OF_FORM Aligns the bottom edge of a control with the bottom of the form.
FA_BOTTOM_OFFSET Specifies a signed offset value to add to the bottom edge of a control.
FA_BOTTOM_TO_TOP_OF_CONTROL Aligns the bottom edge of one control with the top edge of another control.
FA_HEIGHT_OF_CONTROL Makes the height of one control the same as the height of another control.
FA_HORIZONTAL_CENTER Horizontally centers a control within a form.
FA_HORIZONTAL_CENTER_OF_
CONTROL
Specifies the horizontal center of a control on a form
FA_HORIZONTAL_OFFSET Moves a control horizontally by a specified number of pixels.
FA_LEFT_CONTROL Aligns one control with the left edge of another control.
FA_LEFT_CONTROL_FRACTION Specifies one dimension of a control as a percentage of the left of another control. Use an integer to express the percentage.
FA_LEFT_FRACTION Specifies one dimension of a control as a percentage of the left side of its parent form. Use an integer to express the percentage.
FA_LEFT_OF_FORM Aligns the left edge of a control with the left of the form.
FA_LEFT_OFFSET Specifies, in pixels, the amount of space to place between the left edge of a control and the edges of its parent or another control.
FA_LEFT_TO_RIGHT_OF_CONTROL Aligns the left edge of one control with the right edge of another control.
FA_RIGHT Specifies the horizontal position of the right edge of the control.
FA_RIGHT_CONTROL Aligns one control with the right edge of another control.
FA_RIGHT_CONTROL_FRACTION Specifies one dimension of a control as a percentage of the right of another control. Use an integer to express the percentage.
FA_RIGHT_FRACTION Specifies one dimension of a control as a percentage of the right of its parent form. Use an integer to express the percentage.
FA_RIGHT_OF_FORM Aligns the right edge of a control with the right of the form.
FA_RIGHT_OFFSET Specifies, in pixels, the amount of space to place between the right edge of a control and the edges of its parent or another control.
FA_RIGHT_TO_LEFT_OF_CONTROL Aligns the right edge of one control with the left edge of another control.
FA_TOP_CONTROL Aligns one control with the top edge of another control.
FA_TOP_CONTROL_FRACTION Specifies one dimension of a control as a percentage of the top of another control. Use an integer to express the percentage.
FA_TOP_FRACTION Specifies one dimension of a control as a percentage of the top of its parent form. Use an integer to express the percentage.
FA_TOP_OF_CAPTION Specifies the location of the top of the title bar.
FA_TOP_OF_FORM Aligns the top edge of a control with the top of the form.
FA_TOP_OFFSET Specifies, in pixels, the amount of space to place between the top of a control and the edges of its parent or another control.
FA_TOP_TO_BOTTOM_OF_CONTROL Aligns the top edge of one control with the bottom edge of another control.
FA_VERTICAL_CENTER Vertically centers a control within a form.
FA_VERTICAL_CENTER_OF_
CONTROL
Specifies the exact vertical location of a control on a form
FA_VERTICAL_OFFSET Moves a control vertically by a specified number of pixels.
FA_WIDTH_OF_CONTROL Makes the width of one control the same as the width of another control.
ASFC_DISPID_AUTOSCALEFONT Adjusts fonts to fit the control. If set, the font size is reduced to allow the text to fit in the control.