我修改了两个参数 gradientcolorstyle 为MSOFFICE 和Visualstyle为vsGradient,运行的时候,还是没变成那种蓝色的OFFICE 2003风格,还有什么样参数要设置呢

解决方案 »

  1.   

    gradientcolorstyle属性改成gcsCustom
    然后改一下gradientcolorstart和gradientcolorstop试试
      

  2.   

    用RAIZE自带的DEMO,可以的,可是我自己设置就不可以,不知道为什么,很郁闷,研究了很久,没看到还有什么地方写代码的,
      

  3.   

    DescriptionGradientColorStyle properties are active when the control's VisualStyle property is set to vsGradient. The default value of properties of this type is gcsSystem, which means that the gradient color values needed by the control are obtained from the current system colors. This value ensures that the control look great regardless of the users current color scheme.  To mimic the Microsoft Office 2003 look when XP themes are active (i.e. blue, green, and silver backgrounds for toolbars, etc.) then select the gcsMSOffice value.  If XP themes are not present, then the control will utilize the gcsSystem value. And finally, if you wish to select custom color values for the gradients used in a control, then select the gcsCustom value.
      

  4.   

    试验过了,用RAIZE的DEMO可以的
      

  5.   

    我记得cxgrid有个style还是什么的属性可以选择,具体哪个几不清楚了
      

  6.   

    我还直接把DEMO里的现实OFFICE 蓝色风格的panle复制到我的程序,但是就不行,
      

  7.   

    RzPanel1.GradientColorStyle  := TRzGradientColorStyle  里面是有加这样一个 改变 触发 不是单纯设置 或者 2楼说的
    gradientcolorstyle属性改成gcsCustom
    然后改一下gradientcolorstart和gradientcolorstop 调自己要的颜色
      

  8.   

    一种是gcsCustom ,一种是gcsSystem,还有一种是gcsOffice