Skip to main content
Version: Next

OBJECT SET VERTICAL ALIGNMENT

OBJECT SET VERTICAL ALIGNMENT ( {* ;} object ; alignment )

ParameterTypeDescription
*OperatorIf specified, object is an object name (string)If omitted, object is a variable
objectanyObject Name (if * is specified) or Variable (if * is omitted)
alignmentIntegerAlignment code

This command is not thread-safe, it cannot be used in preemptive code.

Description

The OBJECT SET VERTICAL ALIGNMENT command modifies the type of vertical alignment applied to the object(s) designated by the object and * parameters.

If you pass the optional * parameter, this indicates that the object parameter is an object name (a string). If you do not pass this parameter, this indicates that the object is a variable. In this case, you pass a variable reference instead of a string.

In alignment, you pass one of the following constants found in the Form Objects (Properties) theme:

ConstantTypeValue
Align bottomInteger4
Align centerInteger3
Align defaultInteger1
Align topInteger2

Vertical alignment can be applied to the following form objects:

  • list boxes,
  • list box columns,
  • list box headers and footers.

See also

OBJECT Get horizontal alignment
OBJECT Get vertical alignment
OBJECT SET HORIZONTAL ALIGNMENT