Navigation:  Classes > bBrowser >

bBrowser:GetValueForeground()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Determines the foreground color in order to draw a value in a certain state.

Class

bBrowser

Type

Method

Syntax

<oBrowser>:GetValueForeground(

<iRow>,

<aoColorSpec>,

<oGrid>,

<symValueView>,

<lFocus>,

<lSelected>,

<lDeleted>,

<lEnabled>,

<lEoF>,

<lCurrentCell>,

<lCurrentRow>

) Æ oForeground

Arguments

<iRow>Number of the row for which the foreground color is to be determined.
Data Type:Integer

 

<aoColorSpec>Array with the foreground and background colors for normal and selected display. The array is a combination of the accesses bBrowser:GetColorSpec() and bDataColumn:GetColorSpec().
Data Type:Array

 

<oGrid>Grid with which the value is to be drawn.
Data Type:bGrid

 

<symValueView>Type of view of the value. The following types are supported:

 

View

Description

#CheckBox

The logical value is drawn as check box.

#ComboBox

The value is drawn as combo box.

#ComboEdit

The value is drawn as combo edit.

#Text

The value is drawn as single- or multiline text.

 

If the value NULL_SYMBOL is specified, the type of view #Text is used.

Data Type:Symbol

 

<lFocus>Logical value which indicates whether the foreground color for the focus state is to be determined.
Data Type:Logic

 

<lSelected>Logical value which indicates whether the foreground color for the selected state is to be determined.
Data Type:Logic

 

<lDeleted>Logical value which indicates whether the foreground color for the deleted state is to be determined.
Data Type:Logic

 

<lEnabled>Logical value which indicates whether the foreground color for the enabled or disabled state is to be determined.
Data Type:Logic

 

<lEoF>Logical value which indicates whether the foreground color for the end of file state is to be determined.
Data Type:Logic

 

<lCurrentCell>A logical value which indicates whether the value for that is to determine the foreground color is under the cursor.
Data Type:Logic

 

<lCurrentRow>A logical value which indicates whether the value for that is to determine the foreground color is in the row of the cursor.
Data Type:Logic

Return Value

oForegroundThe determined foreground color.
Data Type:Color

Description

bBrowser:GetValueForeground() is called internally by the draw methods of the bBrowser in order to determine the foreground color for a value in a certain state.

 

Complex states can be defined by the combination of the individual arguments

lFocus

lSelected

lDeleted

lEnabled

lEoF

lCurrentCell

lCurrentRow

See Also

bBrowser:DrawCell()

bBrowser:DrawData()

bBrowser:DrawRow()

bBrowser:GetColorSpec()

bBrowser:GetValueBackground()

bDataColumn:GetColorSpec()

 


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