AutoPlay Media Studio 9

Grid.GetCellColors

Grid.GetCellColors

This is the first topic This is the last topic  

Grid.GetCellColors

This is the first topic This is the last topic  

OverviewExamples

table Grid.GetCellColors (

string ObjectName,

number Row,

number Column )

Example 1

-- Display cell colors for cell 1, 1

tbColors = Grid.GetCellColors("DataGrid",1,1);

if tbColors then

     if tbColors.Background == GRID_CLR_DEFAULT then

         BackgroundColor = "DEFAULT";

     else

         BackgroundColor = tbColors.Background;

     end

 

     if tbColors.Text == GRID_CLR_DEFAULT then

         TextColor = "DEFAULT";

     else

         TextColor = tbColors.Text;

     end

 

     Message = "Background = "..BackgroundColor..", Text = "..TextColor;

     Dialog.Message("Colors",Message);

end

Gets the cell colors of the grid cell at (1,1) and shows their values in a dialog message.

See also: Related Actions


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