Grid.SetGridColors

Grid.SetGridColors (

string ObjectName,

table Colors )

Description

Sets the background, grid line, and tooltip colors of a grid object.

Parameters

ObjectName

(string) The name of the grid object.

Colors

(table) A table with the following indexes:

KEY

TYPE

DESCRIPTION

GridBackground

number

The color value of the grid's background. If this value is GRID_CLR_DEFAULT (4278190080) then the grid is set to the default color according to the user's Windows color scheme. You can use the Grid.MakeColorRGB action to help make colors.

GridLines

number

The color value of the grid's lines. If this value is GRID_CLR_DEFAULT (4278190080) then the grid lines are set to the default color according to the user's Windows color scheme.

TooltipBackground

number

The color value of the grid tooltip's background. If this value is GRID_CLR_DEFAULT (4278190080) then the tooltip background is set to the default color according to the user's Windows color scheme.

TooltipText

number

The color value of the grid tooltip's text. If this value is GRID_CLR_DEFAULT (4278190080) then the tooltip text is set to the default color according to the user's Windows color scheme.

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

See also: Related Actions