Skip to main content
Version: 20 R7 BETA

OBJECT SET HORIZONTAL ALIGNMENT

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

ParameterTypeDescription
*OperatorIf specified, object is an Object name (String) If omitted, object is a field or a variable
objectanyObject name (if * specified), or Field or variable (if * omitted)
alignmentIntegerAlignment code

Description

The OBJECT SET HORIZONTAL ALIGNMENT command allows you to set the type of horizontal alignment applied to the object(s) designated by the object and * parameters.

If you specify the optional * parameter, you indicate an object name (a string) in the object parameter. If you omit the * parameter, you indicate a field or variable in the object parameter. In this case, you specify a field or variable reference (field or variable objects only) instead of a string.

Pass one of the constants of the Form Objects (Properties) theme in the alignment parameter:

ConstantTypeValueComment
Align centerInteger3
Align defaultInteger1
Align leftInteger2
Align rightInteger4
wk justifyInteger5Available for 4D Write Pro areas only

The form objects to which alignment can be applied are as follows:

  • Scrollable areas
  • Combo boxes
  • Buttons
  • Radio buttons
  • Check boxes
  • Static text
  • Group areas
  • Pop up menu/Drop-down lists
  • Fields
  • Variables
  • List boxes
  • List box columns
  • List box headers
  • List box footers
  • 4D Write Pro Reference areas

See also

OBJECT Get horizontal alignment
OBJECT Get vertical alignment
OBJECT SET VERTICAL ALIGNMENT

Properties

Command number706
Thread safe