Grid.GetGridColors

table Grid.GetGridColors (

string ObjectName )

Description

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

Parameters

ObjectName

(string) The name of the grid object.

Returns

(table) A table indexed by the following values. If an error occurs, nil will be returned.

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.

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.

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

ResultVariable

When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.

See also: Related Actions