ALIGNMENT Property


PLBCMP GUI Only

 

The ALIGNMENT property defines the alignment of text within the object's defined screen position. The property uses the following format:

 

ALIGNMENT={value}

Note the following:

  1. ALIGNMENT may be used in CREATE, SETPROP, or GETPROP statements for STATTEXT objects. It may also be used in CREATE or GETPROP statements for EDITTEXT, EDITNUMBER, LABELTEXT, or RICHEDITTEXT objects.

  2. The property may be used in GETPROP or SETPROP statements for elements of the Columns collection of a DATATABLE. This property only takes affect visually when the DATATABLE is bound to an HTMLCONTROL.

  3. Input data is scrolled left when the object is filled if the ALIGNMENT property is set to None or Left. With any other ALIGNMENT property setting, data is truncated within the bounds of the object.

  4. {value} is a decimal number, a Numeric Variable, an Expression or a keyword as defined in PLBEQU.INC. The supported values and keywords are:
     

  5. Value

    Keyword

    The text alignment is ...

    0

    $NONE

    the default value ($LEFT).

    1

    $CENTER

    centered.

    2

    $LEFT

    left justified.

    3

    $RIGHT

    right justified.

 

See Also: Object Properties, Object IO Instructions, Object Definitions

 



PL/B Language Reference ADVISEKEY Property Alignment Property (LISTVIEW Column)