TwwDBGrid Colors
Greetings,
Delphi 11.2
I have been reviewing Alpha Skins controls (www.alphaskins.com), they say they can skin your components on their website, but thus far I have not been able to get this working. I do have an email out to their support, but so far no answer.
My application is huge and uses TwwDBGrid components throughout, literally hundreds of them, so I really do not want to swap them all out, just to achieve an elegant look to the form,
So, based on which skin is selected, I'm trying to manually change the coloring of the TwwDBGrid to look a little nicer on the form. In the OnAfterChange event of the SkinManager I want to update the grid manually based on which skin is selected. So far I can change the color of the title bar and cell background color, so it's blending in with the skin much better.
wwDBGrid1.Color := $00F3E6C6;
wwDBGrid1.TitleColor := sSkinManager1.Palette[pcMainColor];
wwDBGrid1.TitleFont.Color := clWhite;
I was hoping that I could change the coloring of the scroll bars and possibly the grid border. Is this possible and if so how?
Appreciate any guidance.
Mike
-
Hi Mike - have you tried using Delphi’s own themes? Im not sure how they differe from alphaskins TBH. I have had some luck with using them with TwwDBGRID. Just make you set the two disablethemes options to false. I also set the color to clwindow and the titlecolor option to clBtnFace. You may be able to further customize colors using the OnCalcCellColor event but I have not got got that far yet. Hope this helps!
Please sign in to leave a comment.
Comments
1 comment