Ver Mensaje Individual
  #2  
Antiguo 08-09-2008
Willo Willo is offline
Miembro
 
Registrado: jun 2006
Posts: 116
Reputación: 20
Willo Va por buen camino
Ese es el problema... no existe el objeto Acolumn....!

este es el codigo que tengo hasta el momento....(no funciona como debe ser)
Código:
procedure TFclientes.GridDBTableView1CustomDrawCell(
  Sender: TcxCustomGridTableView; ACanvas: TcxCanvas;
  AViewInfo: TcxGridTableDataCellViewInfo; var ADone: Boolean);
var
     ARec: TRect;
     ATextToDraw, val: String;
     AIsVertical: Boolean;
     procedure SetTextToDraw;
     begin
          ATextToDraw := AViewInfo.GridRecord.DisplayTexts[AViewInfo.Item.Index];
     end;
begin
     SetTextToDraw;
     ARec := AViewInfo.Bounds;
     if (Qclientes.FieldByName('CL_EMAIL').asstring = '') and (Qclientes.FieldByName('CL_EMAIL').asstring = '') then
     begin
          Acanvas.Canvas.Font.Color := clred;
     end
     else
     begin
          Acanvas.Canvas.Font.Color := clwindowtext;
     end;
     ACanvas.Canvas.FillRect(ARec);
end;
Responder Con Cita