Color

Description

The text color of the column or the background color of the DataWindow.

The color affected by the Color property depends on the control:

Applies to

DataWindow, Button, Column, Graph, and GroupBox controls

Syntax

Describe and Modify argument:

	"DataWindow.Color { = long }"
	"controlname.Color { = long }"

DataWindowSyntaxFromSql:

	DataWindow ( Color = long )
	Column ( Color = long )

Parameter

Description

controlname

The column whose text color you want to set or the graph whose line color you want to set.

long

(exp for columns only) A long value specifying the color of the column text or the DataWindow background. When you are specifying the text color of a column, you can specify a DataWindow expression in quotes. You cannot specify an expression for the DataWindow background color.

When generating DataWindow syntax with DataWindowSyntaxFromSql, the Color setting for Column applies to all columns.

Usage


In the painter

For the DataWindow background, click the DataWindow to deselect all controls and set the value in the Properties window, General category.

For a column’s text color, select the column and set the value in the Properties window, Appearance category.

For a graph’s line color, select the graph and set the value in the Properties window, Appearance category.

Examples

Example 1

[Visual Basic]
dw_back_color = dw1.Describe("DataWindow.Color")

column_text_color = dw1.Describe("emp_name.Color")

dw1.Modify(  _

		"salary.Color='0~tIf(salary>90000,255,65280)'")

See also

Background, BackColor