AutoPlay Media Studio 9

Grid.SetGridColors

Grid.SetGridColors

This is the first topic This is the last topic  

Grid.SetGridColors

This is the first topic This is the last topic  

OverviewExamples

Grid.SetGridColors (

string ObjectName,

table   Colors )

Example 1

-- Get the colors of the background, lines and tooltips.

tblGridColors = Grid.GetGridColors("Grid1");

 

-- if they are not the default

if tblGridColors.GridBackground ~= GRID_CLR_DEFAULT then

    -- create a table to store the defaults

    tblDefaults = {};

    tblDefaults.GridBackground = GRID_CLR_DEFAULT;

    tblDefaults.GridLines = GRID_CLR_DEFAULT;

    tblDefaults.TooltipBackground = GRID_CLR_DEFAULT;

    tblDefaults.TooltipText = GRID_CLR_DEFAULT;

    -- Set these values back to the windows defaults

    Grid.SetGridColors("Grid1", tblDefaults);

end

 

-- refresh the grid

Grid.Refresh("Grid1");

Sets the grid background, lines and tooltip colors to the default Windows colors.

See also: Related Actions


Learn More: Indigo Rose Software - AutoPlay Media Studio - Buy Now - Contact Us