Navigation:  Classes > bDataColumn >

bDataColumn:GetColorSpec()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Determines for a column value the foreground and background color from the defined color conditions.

Class

bDataColumn

Type

Method

Syntax

<oDataColumn>:GetColorSpec(

<iColumn>,

<nRowNo>,

<nRecNo>

) Æ aoColorSpec

Arguments

<iColumn>The column number of the cell, which is passed as argument to the defined color conditions.
Data Type:Integer

 

<nRowNo>The row number of the cell, which is passed as argument to the defined color conditions.
Data Type:Integer | Float | Real8

 

<nRecNo>The record number of the cell, which is passed as argument to the defined color conditions.
Data Type:Integer | Float | Real8

Return Value

aoColorSpecAn array with the 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

bDataColumn:GetColorSpec() evaluates all defined color conditions to the current column value. On the color condition that results the value TRUE as the first the foreground and background color are returned.

 

If no color condition were found to the record or on the determined color condition no foreground or background color is defined, the foreground or background color respectively from the bBrowserColumn:DataView object is returned.

See Also

bBrowser:GetColorSpec()

bDataColumn:ColorCondition

bBrowserColumn:DataView

 


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