wwDBGrid title color
Hello All,
Long-time user of InfoPower VCL in the past; retired now but still coding for personal use. I recently installed the Community Version of Delphi (Sydney), then purchased and installed the latest InfoPower for Sydney. No problems with setups.
Created a new VCL app and started by dropping a wwDBGrid directly on the form plus a TPanel at the bottom to which I'll add other controls. Set the Datasource for the grid, and table data displayed as expected. Began setting a few other properties including the TitleColor for the grid. Instead of setting the color for the grid title row, the background color of the form was set to that color instead. Also having problems setting ActiveRow color. Alternating row color is fine.
Does anyone know if InfoPower has any anomalous behavior when used with Delphi Community edition? If not, any ideas why some color properties of wwDBGrid are not functioning normally?
TIA any assistance.
-
Your project is likely built with themes so the default theme overrides the coloring. If you wish to disable themes just for the grid, you can set DisableThemesInTitle to false. You can also set DisableThemes to false if you also wish to affect the data area.
Finally you can look at your project settings and entirely disable themes if you want.
-
Roy,
Sheesh! That's embarrassing. :(
Before I retired, I coded applications that used dozens of wwDBGrids. Either I've forgotten WAY more than I thought or there's a bunch of new properties for newer versions of Windows. It's probably the former (and that's not good). I'm afraid to think how long it's going to take to catch back up.
Sorry for taking up your time, but thanks very much.
Please sign in to leave a comment.
Comments
5 comments