Navigation:  Classes > bBrowser >

bBrowser:GetSelectorColorSpec()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Determines for the current record the foreground and background color of a selector cell from the defined color conditions.

Class

bBrowser

Type

Method

Syntax

<oBrowser>:GetSelectorColorSpec(

<nRowNo>,

<nRecNo>

) Æ aoColorSpec

Arguments

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

 

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

Return Value

aoColorSpecAn array with all derived 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:GetSelectorColorSpec() evaluates all defined selector 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 conditions were found for the record or if none of the determined color conditions yield TRUE as a result, for the missing color the value NULL_OBJECT is returned.

See Also

bBrowser:SelectorColorCondition

 


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