This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
OBJECT SET HORIZONTAL ALIGNMENT

OBJECT SET HORIZONTAL ALIGNMENT 


 

OBJECT SET HORIZONTAL ALIGNMENT ( {* ;} object ; alignment ) 
Parameter Type   Description
Operator in If specified, object is an Object name (String) If omitted, object is a field or a variable
object  Form object in Object name (if * specified), or Field or variable (if * omitted)
alignment  Longint in Alignment code

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:
 

Constant Type Value Comment
Align center Longint 3
Align default Longint 1
Align left Longint 2
Align right Longint 4
wk justify Longint 5

Available for 4D Write Pro and Input text areas


 

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 

Product: 4D
Theme: Objects (Forms)
Number: 706

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v6.8.1
Renamed: 4D v12 (SET ALIGNMENT)
Renamed: 4D v13 (SET ALIGNMENT)
Modified: 4D v15 R4
Modified: 4D v20

 
ARTICLE USAGE

4D Language Reference ( 4D v20 R7)