Purpose
Sets the background color of selector cells for a defined state.
Class
Type
Method
Syntax
<oBrowser>:SetSelectorBackground(
<iMode>,
<oBackground>
) Æ lSuccess
Arguments
<iMode> | The state to that the background 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 |
<oBackground> | The background color that is to be set to the state. |
Data Type: | Brush |
Return Value
lSuccess | A logical value that indicates whether the background color could be set. |
TRUE | The background color could be set. |
FALSE | The background color could not be set. |
Data Type: | Logic |
Description
Each state of a selector cell can have its own defined background color. When drawing an selector cell these background colors are used.
The method bBrowser:GetSelectorBackground() can be used to get the background color.
So that the set background 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:SetSelectorForeground()
Page url: http://www.YOURSERVER.com/index.html?bbrowser_setselectorbackground.htm