Thursday, June 22, 2006

Themed TDBGrid descendant - TThemeDBGrid

I've uploaded a component to CodeCentral that draws a TDBGrid descendant as themed (when used within a themed application).

You can download this component and sample application from CodeCentral here.

Also includes a new property AllowTitleClick which allows you to enable/disable the visual nature of clicking on a column title.

Bug reports and Feedback welcome.

Full source and no license terms are applicable for this component.

If only DrawMove and DrawSizingLine where virtual.

Title Column Hot

Title clicked when AllowTitleClick is True

AllowTitleClick False and Column Moving disabled


Anonymous Ottar Holstad said...

Thanks a lot! I tried to do this myself once, but it turned out to be a lot more complicated than I thought... When deleting the inline directives and changing from Themes to ThemeSrv, it also works for Delphi 6. NB! There is a QC report for themed grids: 3810.

6:38 PM  
Anonymous Anonymous said...

very good
when setting bidimode to "righttoleft" the indecator still in the "ltr" case

8:09 PM  
Anonymous Achim Kalwa said...

Hello JED,

looks like OnDrawColumnCell doesn't work with TThemeDBGrid. I use OnDrawColumnCell to paint some cells with different color (depending on data).
Any ideas how to fix this problem?


2:21 AM  
Anonymous Achim Kalwa said...

Hello JED,

please discard by last comment; there was a bug in by code :-(

I have to apologize; OnDrawColumnCell works very well with TThemeDBGrid.

Thank you very much

2:29 AM  

Post a Comment

<< Home