Navigation:  Classes > bBrowser >

bBrowser:GetColumnAlignment()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Determines column alignment information which is being used for drawing.

Class

bBrowser

Type

Method

Syntax

<oBrowser>:GetColumnAlignment(

<symStyle>,

<oColumn>

) Æ iAlignment

Arguments

<symStyle>A value that indicates whether the alignment is to be determined for the column caption, the column values or for the column footer. The following values are supported:

 

Value

Description

#Caption

The alignment is determined for the column caption.

#Data

The alignment is determined for the column values.

#Footer

The alignment is determined for the column footer.

 

Data type:Symbol

 

<oColumn>The column for which the alignment is to be determined.
Data type:bDataColumn

Return Value

iAlignmentThe determined alignment. A combination of the the following values can be returned:

 

Constant

Description

BALIGN_AUTO

The default values for horizontal and vertical alignment are used.

BALIGN_LEFT

Left justified alignment.

BALIGN_RIGHT

Right justified alignment.

BALIGN_CENTER

Horizontal centered alignment.

BALIGN_TOP

Top justified alignment.

BALIGN_BOTTOM

Bottom justified alignment.

BALIGN_VCENTER

Vertical centered alignment.

If the value BALIGN_AUTO is returned then the horizontal alignment depends on the data type of the column values. Numeric values are right justified all other values are left justified aligned.

Data type:Integer

Description

If the alignment is determined for the column caption,

1.it examines whether this column has a bBrowserColumn:CaptionView object defined for it and whether the alignment (see also bViewStyle:Alignment) in this object IS NOT set to BALIGN_AUTO.
Ü If so, this alignment is returned.
2.it examines whether this column has a bBrowserColumn:DataView object defined for it and whether the alignment (see also bViewStyle:Alignment) in this object IS NOT set to BALIGN_AUTO.
Ü If so, this alignment is returned.
3.it examines whether in the browser a bBrowser:CaptionView object is defined.
Ü If it is, the alignment (see also bViewStyle:Alignment) from this object is returned.
4.Ü the alignment BALIGN_AUTO is returned.

 

If the alignment is determined for the column values,

1.it examines whether this column has a bBrowserColumn:DataView object defined for it and whether the alignment (see also bViewStyle:Alignment) in this object IS NOT set to BALIGN_AUTO.
Ü If so, this alignment is returned.
2.it examines whether in the browser a bBrowser:DataView object is defined and whether in this an alignment (see also bViewStyle:Alignment) in this object IS NOT set to BALIGN_AUTO.
Ü If it is, the alignment from this object is returned.
3.it examines whether the data type of the column is numeric.
Ü If it is, the alignment BALIGN_RIGHT is returned.
4.Ü the alignment BALIGN_AUTO is returned.

 

If the alignment is determined for the column footer,

1.it examines whether this column has a bBrowserColumn:FooterView object defined for it and whether the alignment (see also bViewStyle:Alignment) in this object IS NOT set to BALIGN_AUTO.
Ü If it is, this alignment is returned.
2.it examines whether this column has a bBrowserColumn:DataView object defined for it and whether the alignment (see also bViewStyle:Alignment) in this object IS NOT set to BALIGN_AUTO.
Ü If so, this alignment is returned.
3.it examines if in the browser a bBrowser:FooterView is defined object.
Ü If it is, the alignment (see also bViewStyle:Alignment) from this object is returned.
4.Ü the alignment BALIGN_AUTO is returned.

See Also

bBrowser:CaptionView

bBrowser:DataView

bBrowser:FooterView

bBrowserColumn:CaptionView

bBrowserColumn:DataView

bBrowserColumn:FooterView

 


Page url: http://www.YOURSERVER.com/index.html?bbrowser_getcolumnalignment.htm