Skip to content

peLabelAlign - cWebBaseControl

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

Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None

Syntax

{ WebProperty=Client }
Property Integer peLabelAlign
Access Type Syntax
Read Access: WebGet peLabelAlign to IntegerVariable
Write Access: WebSet 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:

Constant Meaning
alignLeft (0) Left aligned
alignCenter (1) Center aligned
alignRight (2) Right aligned

The default value of this property is C_WebDefault (-1). 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

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.