• 改变Gride的颜色


    public void displayOption(TableName _record, FormRowDisplayOption _options)

    {

           int IcBackColor = winapi::RGB2int(255,255,255);

           int IcTextColor = winapi::RGB2int( 0, 0, 0);

           int SiBackColor = winapi::RGB2int(255,128,225);

           int SiTextColor = winapi::RGB2int( 0, 0, 0);

           int CrBackColor = winapi::RGB2int(255,225,128);

           int CrTextColor = winapi::RGB2int( 0, 0, 0);

     

           switch (_record.DtlType)

           {

           case 'IC':

                  _options.clearBackColor();

                  _options.clearTextColor();

                  _options.backColor(IcBackColor);

                  _options.textColor(IcTextColor);

                  break;

           case 'SI':

                  _options.clearBackColor();

                  _options.clearTextColor();

                  _options.backColor(SiBackColor);

                  _options.textColor(SiTextColor);

                  break;

           case 'CR':

                  _options.clearBackColor();

                  _options.clearTextColor();

                  _options.backColor(CrBackColor);

                  _options.textColor(CrTextColor);

                  break;

           }

           super(_record, _options);

    }

  • 相关阅读:
    多线程案例龟兔赛跑
    不靠谱的事
    生命的价值并不止于自己的幸福
    我的高中搞笑班主任
    AgileChina参会笔记
    上美食
    程序中保留一个Dump
    骗子公司驾到
    我的《野蛮生长》书摘
    最近看的书的清单
  • 原文地址:https://www.cnblogs.com/Fandyx/p/2761587.html
Copyright © 2020-2023  润新知