标题:求高手指点分行显示GridEh背景颜色的问题
只看楼主
ttnk123
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2012-1-14
 问题点数:0 回复次数:0 
求高手指点分行显示GridEh背景颜色的问题
procedure TRejectForm.DBGridEh1DrawColumnCell(Sender: TObject;
  const Rect: TRect; DataCol: Integer; Column: TColumnEh;
  State: TGridDrawState);
begin
  case Datainout.QRClientDataSet.FieldByName('flag').AsBoolean=True of
    True :  DBGridEh1.Canvas.brush.color:=clwindow;
    False : DBGridEh1.canvas.Brush.color:=clSkyBlue;
  end;
  if((State=[gdselected]) or(State=[gdselected,gdFocused])) then
   DBGridEh1.Canvas.brush.color:=clactivecaption;
   DBGridEh1.canvas.pen.mode:=pmmask;
  DBGridEh1.DefaultDrawColumnCell(rect,datacol,column,State);
end;

老是提示DBGridEh1.DefaultDrawColumnCell(rect,datacol,column,State);出错
错误代码:incompatible types

求高手指点,为何出错啊


搜索更多相关主题的帖子: procedure False 
2012-01-14 10:07



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-359650-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.434710 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved