Home »» Delphi [Programming]
Thread Profile: Need help modifying TDBGrid
Need help modifying TDBGrid
Hello all. I'm writing a component for Delphi 7, a child of TDBGrid,
and I need to make the following changes:
1. Transparency - I want to add a Transparent (boolean) property,
that will include the cells, the titles and indicators, and the
empty space below and right of the actual grid. I know how to use
BitBlt, and have managed to produce some semblence of transparency
by adding a TPicture, and overriding the Paint method, but what I'd
really want is some way to get the graphic of the underlying
controls. Is that possible?
2. I need to add properties to the TColumn class (i.e. create a
child). The problem is that the new class has to be editable in
design-time, and I have problems making the collection-editor
reflect these changes. I found a helping example in delphi.about.com
(excellent must site, BTW), but that handles the generalities of
creating children of TCollectionItem, and TCollection, and those are
insufficient here. Could anyone give me a helping hand here - what
other (beyond Assign, Add, Insert, Update, Get/Set) methods in
TColumn, TDBGridColumns and TCustomDBGrid need to be overridden so
that I can get full object-inspector capabilities for my DBGrid
child?
BTW - If any are interested I'll gladly post the source code for
this component once done, or email any contributors. It should be
worthwhile - I added functionality to hide the scrollbars, and alter
the display and edit controls for different field-types (checkboxes,
spinedits, leds, etc).
Thanks in advance,
Assaf.
Yahoo! Groups Sponsor
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
Home page:
To unsubscribe: delphi-en-unsubscribe (AT) yahoogroups (DOT) com
Yahoo! Groups Links
<*To visit your group on the web, go to:
<*To unsubscribe from this group, send an email to:
delphi-en-unsubscribe (AT) yahoogroups (DOT) com
<*Your use of Yahoo! Groups is subject to:
and I need to make the following changes:
1. Transparency - I want to add a Transparent (boolean) property,
that will include the cells, the titles and indicators, and the
empty space below and right of the actual grid. I know how to use
BitBlt, and have managed to produce some semblence of transparency
by adding a TPicture, and overriding the Paint method, but what I'd
really want is some way to get the graphic of the underlying
controls. Is that possible?
2. I need to add properties to the TColumn class (i.e. create a
child). The problem is that the new class has to be editable in
design-time, and I have problems making the collection-editor
reflect these changes. I found a helping example in delphi.about.com
(excellent must site, BTW), but that handles the generalities of
creating children of TCollectionItem, and TCollection, and those are
insufficient here. Could anyone give me a helping hand here - what
other (beyond Assign, Add, Insert, Update, Get/Set) methods in
TColumn, TDBGridColumns and TCustomDBGrid need to be overridden so
that I can get full object-inspector capabilities for my DBGrid
child?
BTW - If any are interested I'll gladly post the source code for
this component once done, or email any contributors. It should be
worthwhile - I added functionality to hide the scrollbars, and alter
the display and edit controls for different field-types (checkboxes,
spinedits, leds, etc).
Thanks in advance,
Assaf.
Yahoo! Groups Sponsor
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
Home page:
To unsubscribe: delphi-en-unsubscribe (AT) yahoogroups (DOT) com
Yahoo! Groups Links
<*To visit your group on the web, go to:
<*To unsubscribe from this group, send an email to:
delphi-en-unsubscribe (AT) yahoogroups (DOT) com
<*Your use of Yahoo! Groups is subject to:
- 0Answer
- Total