Navigation:  Classes > bBrowser >

bBrowser:GetColorSpec()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Returns the foreground and background color of the current record.

Class

bBrowser

Type

Method

Syntax

<oBrowser>:GetColorSpec() Æ aoColorSpec

Return Value

aoColorSpecAn array with all determined foreground and background colors for normal and selected display. The array consists of 6 elements. The individual elements can be accessed by predefined constants (see table).

 

Constant

Contents

Data type

BCS_FOREGROUND

Foreground color

Color

BCS_BACKGROUND

Background color

Brush

BCS_SELECTEDFOREGROUND

Foreground color for selected cells and rows

Color

BCS_SELECTEDBACKGROUND

Background color for selected cells and rows

Brush

BCS_INACTIVESELECTEDFOREGROUND

Foreground color for inactive selected cells and rows.

Color

BCS_INACTIVESELECTEDBACKGROUND

Background color for inactive selected cells and rows.

Brush

 

Data type:Array

Description

bBrowser:GetColorSpec() evaluates all defined color conditions for the current record. The first condition to return a result of TRUE determines which foreground and background color are returned.

 

If no color condition were found for the record or that none of the determined color conditions yield TRUE as a result, the foreground or background color are returned from the bBrowser:DataView object.

See Also

bBrowser:ColorCondition

bBrowser:DataView

bDataColumn:GetColorSpec()

 


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