Guest User

Untitled

a guest
Jul 21st, 2014
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.84 KB | None | 0 0
  1. procedure TFCadFis_Mvt_Ent.DGridPrincipalDrawFixedCell(Sender: TObject; ACol, ARow: Integer; Rect: TRect; State: TGridDrawState);
  2. begin
  3.   if ((ACol=0) and (QyMestre.BufferRowNum>0) and (DGridPrincipal.DataRow[ARow]>0)) then
  4.     begin
  5.       if      (QyMestre.BufferFieldByName('Identificacao').AsInteger=FIS_MVT_IDENTIFICACAO_ADVERTENCIA) then
  6.         DGridPrincipal.Canvas.Brush.Color := clYellow
  7.       else if (QyMestre.BufferFieldByName('Identificacao').AsInteger=FIS_MVT_IDENTIFICACAO_ERRO) then
  8.         DGridPrincipal.Canvas.Brush.Color := clRed
  9.       else if (QyMestre.BufferFieldByName('Identificacao').AsInteger=FIS_MVT_IDENTIFICACAO_IMPORTAR_NOVAMENTE) then
  10.         DGridPrincipal.Canvas.Brush.Color := clBlue
  11.       else
  12.         DGridPrincipal.Canvas.Brush.Color := clBtnFace;
  13.       DGridPrincipal.Canvas.FillRect(Rect);
  14.     end;
  15. end;
Advertisement
Add Comment
Please, Sign In to add comment