• DBGridEh选择时高亮度显示问题 Delphi


     
    procedure TDbgridForm.DBGrid1DrawColumnCell(Sender: TObject;
      const Rect: TRect; DataCol: Integer; Column: TColumn;
      State: TGridDrawState);
    begin
      with DBGrid1 do
      begin
       if ((State = [gdSelected]) or (State=[gdSelected,gdFocused])) then
        begin
         Canvas.Font.Color :=ClYellow;
         Canvas.Brush.Color :=ClNavy;
        end
        else
        begin
          if  DataSource1.DataSet.RecNo mod 2<>0 then 
            Canvas.brush.Color :=ClWhite        
          else
            Canvas.brush.Color :=clgreen;       
        end;
        DefaultDrawColumnCell(Rect, DataCol, Column, State); 
      end;
    end;

    引用:https://bbs.csdn.net/topics/30305871

  • 相关阅读:
    网页信息抓取 Jsoup的不足之处 httpunit
    spring boot @ConfigurationProperties
    git冲突解决方案 Intellij IDEA
    HTTP 和 Socket 区别
    java.lang.reflect.Method
    dubbo hessian+dubbo协议
    4、注解反射生成SQL语句
    3、解析注解
    2、自定义注解
    1、JDK自带注解
  • 原文地址:https://www.cnblogs.com/jijm123/p/14067549.html
Copyright © 2020-2023  润新知