Alterar a cor de somente uma célula no string grid??????
Colegas..
Estou precisando alterar a cor de somente uma célula no string grid, mas não estou conseguindo..
Já conseguí alterar a formatação do texto, mas a cor da célula não..
Alguém sabe como fazer isso?
Agradeço a todos antecipadamente.
Estou precisando alterar a cor de somente uma célula no string grid, mas não estou conseguindo..
Já conseguí alterar a formatação do texto, mas a cor da célula não..
Alguém sabe como fazer isso?
Agradeço a todos antecipadamente.
Cabelo
Curtidas 0
Melhor post
Kapak
12/07/2005
No evento OnDrawCell:Modifique ACol e ARow conforme a célula.
if (ACol = 1) and (ARow = 2) then begin StringGrid1.Canvas.Brush.Color := clYellow; StringGrid1.Canvas.FillRect(Rect); StringGrid1.Canvas.TextOut(Rect.Left+2, Rect.Top+2, StringGrid1.Cells[1,2]); end;
GOSTEI 1
Mais Respostas
Cabelo
12/07/2005
No evento OnDrawCell:Modifique ACol e ARow conforme a célula.
if (ACol = 1) and (ARow = 2) then begin StringGrid1.Canvas.Brush.Color := clYellow; StringGrid1.Canvas.FillRect(Rect); StringGrid1.Canvas.TextOut(Rect.Left+2, Rect.Top+2, StringGrid1.Cells[1,2]); end;
Funcionou perfeitamente
Muito Obrigado
GOSTEI 0