Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

ID: 24513, Themed DBGrid runtime replacement

by Andreas Hausladen Email: Anonymous

An XP/Vista themed DBGrid that replaces the TDBGrid at runtime (based on Jeremy North's themed DBGrid). Your only action is to add the unit to your project file.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 7.0  to 12.0 1911 downloads
Copyright: No significant restrictions

Size: 5,022 bytes
Updated on Thu, 08 Jan 2009 13:03:51 GMT
Originally uploaded on Mon, 19 Mar 2007 12:58:35 GMT
SHA1 Hash: E01A1F46567963F2E694C420923E848AD3EA775C
MD5 Hash: C145AC415E3B0F3FDDD61DD7206BC370

    Explore the files in this upload

The ThemedDBGrid.pas, which is based on Jeremy North's themed DBGrid, automatically replaces every TDBGrid in the Delphi/C++Builder application by a themed one at runtime. Adding the unit to the project file is all you have to do to enable the theming for all TDBGrids. (Theming requires an XP manifest)

TDBGrid descendants are not themed. Only TDBGrid is replaced at runtime.

Additional features compared to Jeremy North's code:
- Moving the mouse over the header invalidates the cell only when it must be repainted.
- Supports multiple row selection
- Mouse wheel support

Version 2009-01-08:
- Fixed Indicator direction in bdRightToLeft BiDiMode (by Issam Ali)
- Fixed: WMEraseBkgnd didn't work correctly in bidiRightToLeft BiDiMode
- Added: Mouse wheel support
- Added: Workaround for a RightToLeft painting bug (QC #70075)

- Added support for Columns[].Title.Alignment

- Fixed: TitleFont was not used
- Fixed: indicator column was not aligned to the bottom
line of the cells

- DefaultDrawing = False is supported
- Fixed AccessViolation if DataSource = nil

Included TDBGrid bugfixes:
- Reduces WM_ERASEBKGND related flicker
- Fixes multiple deLayoutChanged events when resizing one column.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03