peLabelAlign - cWebBaseControl

Determines whether the label text is aligned to the left, right or center of the label area

Type: Property (Web Property)

Access: Read/Write

Data Type: Integer

Parameters: None

Syntax
 { WebProperty=Client }
 Property Integer peLabelAlign

Web Property Read Access: WebGet peLabelAlign to IntegerVariable
Web Property Write Access: WebSet peLabelAlign to IntegerVariable/Value

Read Access: Get peLabelAlign to IntegerVariable
Write Access: Set peLabelAlign to IntegerVariable/Value


Description

Normally, the width of each control includes a special area reserved for its label (psLabel). Set peLabelAlign to determine whether the label text is aligned to the left, right or center of this label area.

Valid values are:

ConstantMeaning
alignLeftLeft aligned
alignCenterCenter aligned
alignRightRight aligned


The default value of this property is C_WebDefault. When peLabelAlign is set to this value it means that the label alignment is not pre-determined. Instead it is the selected theme (psTheme) that will decide how to align the label, i.e. the theme's default label alignment will be applied. Usually, the theme's default label alignment is alignLeft but, depending on the theme, can be any valid alignment value.

If you want to override the theme's label alignment for a control, then you should set this property.

Make sure pbShowLabel is set to True for this property to take effect.


About Web Properties
Each web property maintains two values: The regular property value is set during object creation and should not be changed during the lifetime of that object. To access that value, use the standard property Get and Set syntax.
The web property value is the local value stored at each client. This is synchronized to the client's local value whenever a server call is being processed. To access the web property value, use the WebGet and WebSet syntax above instead of the standard Get and Set syntax.
See Also

piLabelOffset | peLabelPosition