Purpose
Determines the alignment to use for info value when drawing.
Class
Type
Method
Syntax
<oBrowser>:GetInfoAlignment(<iInfoState>) Æ iAlignment
Arguments
<iInfoState> | The state to whose info value the alignment is to be determined. The following table lists the supported states: |
State |
Description |
BINFO_INREADPROCESS |
The bBrowser reads data about a slow connection. |
BINFO_NORECORDS |
The data server that is linked to the browser does not contain records. This state also arises, for example, if a filter or selective relation hides all records. |
BINFO_NOSERVER |
The browser is not linked to a data server. |
BINFO_SERVERNOTUSED |
The data server that is linked with the browser is not opened. |
Data Type: | Integer |
Return Value
iAlignment | The determined alignment. A combination of 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. |
Data Type: | Integer |
Description
In order to determine the alignment for an info value,
1.it is examined whether a bViewStyle object is defined for the info value (see also bBrowser:GetInfoView()) and whether in this object an alignment (see also bViewStyle:Alignment) is not set equal to BALIGN_AUTO.
Ü If it is, this alignment is returned.
2.it is examined whether a global bBrowser:InfoView object is defined for info value and whether in this object an alignment (see also bViewStyle:Alignment) is set unequal to BALIGN_AUTO.
Ü If it is, this alignment is returned.
3.Ü the value BALIGN_CENTER for the horizontal and BALIGN_VCENTER for the vertical alignment is returned.
See Also
bBrowser:GetInfoAlphaBlendRatio()
Page url: http://www.YOURSERVER.com/index.html?bbrowser_getinfoalignment.htm