Navigation:  Classes > bBrowser >

bBrowser:GetInfoForeground()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Determines the forground colour to use for an info value when drawing.

Class

bBrowser

Type

Method

Syntax

<oBrowser>:GetInfoForeground(<iInfoState>) Æ oForeground

Arguments

<iInfoState>The state to whose info value the foreground color is to be determined. The following table lists the supported states:

 

State

Description

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.

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.

 

Data type:Integer

Return Value

oForegroundThe determined foreground color.
Data type:Color

Description

In order to determine the foreground color for an info value,

1.it is examined whether for the info value a  bViewStyleobject is defined (see also bBrowser:GetInfoView()) and whether in this a foreground color (see also bViewStyle:Foreground) is set unequal to NULL_OBJECT.
Ü If it is, this foreground color is returned.
2.it is examined whether for the info values a global bBrowser:InfoView object is defined and whether in this a foreground color (see also bViewStyle:Foreground) is set unequal to NULL_OBJECT.
Ü If it is, this foreground color is returned.
3.Ü the value NULL_OBJECT is returned.

See Also

bBrowser:GetInfoAlignment()

bBrowser:GetInfoAlphaBlendRatio()

bBrowser:GetInfoBackground()

bBrowser:GetInfoFont()

bBrowser:GetInfoGrid()

bBrowser:GetInfoView()

bBrowser:InfoView

bBrowser:SetInfoView()

 


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