Purpose
Sets the foreground color of selector cells for a defined state.
Class
Type
Method
Syntax
<oBrowser>:SetSelectorForeground(
<iMode>,
<oForeground>
) Æ lSuccess
Arguments
| <iMode> | The state to that the foreground color is to be set. The following table lists the defined states: | 
| State | Description | 
| BSC_ACTIVE | The bBrowser has the focus. | 
| BSC_INACTIVE | The bBrowser has no focus. | 
| BSC_SELECTED | A cell in the record is selected. | 
| BSC_INACTIVESELECTED | A cell in the record is selected and the bBrowser has no focus. | 
| BSC_DELETED | The record in the data server is marked as deleted. | 
| BSC_EOF | EoF record in the data server. | 
| Data Type: | Integer | 
| <oForeground> | The foreground color that is to be set to the state. | 
| Data Type: | Color | 
Return Value
| lSuccess | A logical value that indicates whether the foreground color could be set. | 
| TRUE | The foreground color could be set. | 
| FALSE | The foreground color could not be set. | 
| Data Type: | Logic | 
Description
Each state of a selector cell can have its own foreground colors defined. When drawing a selector cell, these foreground colors are used.
The method bBrowser:GetSelectorForeground() can be used to determine the foreground color.
So that the set foreground color is also shown in the browser, the selector column must be redrawn with the method bBrowser:Redraw().
See Also
bBrowser:GetSelectorBackground()
bBrowser:GetSelectorForeground()
bBrowser:GetSelectorStateBackground()
bBrowser:GetSelectorStateForeground()
bBrowser:SelectorColorCondition
bBrowser:SetSelectorBackground()
Page url: http://www.YOURSERVER.com/index.html?bbrowser_setselectorforeground.htm