按照帮助上的提示,msoffcie的属性是根据当前XP主题决定的,我设置了XP主题,而且看DEMO,也是能成功的,但是自己照着做,就是现实不了MSOFFCIE风格,不知道错在哪里,请教大家了,看了一下源程序,好像也没初始化
   RzGroupBar1.VisualStyle:=vsGradient;
  RzGroupBar1.GradientColorStyle:=gcsMSOffice;
老是显示的,是gcsSystem的颜色,下面是定义,关于GradientColorSytelGradientColorStyle 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.

解决方案 »

  1.   

    你想引用皮肤控件吗,最好用VCLSKIN
      

  2.   

    可以使用DevExpress,这套控件现在很成熟。
      

  3.   

    呵呵,去看看,但是还是想知道哪里出错了
    Use GradientColorStyle to specify how gradient color values are obtained for the control.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.