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 1902 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

Description
The ThemedDBGrid.pas, which is based on Jeremy North's themed DBGrid http://cc.codegear.com/Item/24021, 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)

Limitation:
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)

2008-03-21:
- Added support for Columns[].Title.Alignment

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

2008-03-02:
- 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
Reply  Posted by kach wahed on Dec 06 2009
re: Themed DBGrid runtime replacement
Reply  Posted by delphi001 delphi001 on Oct 26 2009
Themed DBGrid runtime replacement
Reply  Posted by Andreas Hausladen on Mar 21 2008
re: Themed DBGrid runtime replacement
Reply  Posted by Paolo Biondaro on Mar 17 2008
Themed DBGrid runtime replacement
Reply  Posted by Andreas Hausladen on Mar 10 2008
re: Themed DBGrid runtime replacement
Reply  Posted by Andreas Hausladen on Mar 05 2008
re: Themed DBGrid runtime replacement
Reply  Posted by Andreas Hausladen on Mar 02 2008
re: Themed DBGrid runtime replacement

Server Response from: ETNACDC03