| View previous topic :: View next topic |
| Author |
Message |
Lapo Guidi Guest
|
Posted: Mon Dec 08, 2003 6:02 pm Post subject: TCustomEdit and TCustomGrid |
|
|
Hi all,
I'm trying to change the look at a StringGrid.
I started from a TCustomGrid.
The problem I have now is to customize the editing, because when I edit a
cell, the standard TCustomEdit is called from the application.
How can I customize the way this TCustomEdit is painted?
Thanks
Lapo
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Dec 08, 2003 6:17 pm Post subject: Re: TCustomEdit and TCustomGrid |
|
|
"Lapo Guidi" <lapoguidi (AT) inwind (DOT) it> wrote
| Quote: | How can I customize the way this TCustomEdit is painted?
|
Create your own TInplaceEdit descendant class and do your customizations
from there instead. Then in the grid, override the CreateEditor() method to
use your custom editor instead of the default one.
Gambit
|
|
| Back to top |
|
 |
Lapo Guidi Guest
|
Posted: Mon Dec 08, 2003 6:46 pm Post subject: Re: TCustomEdit and TCustomGrid |
|
|
Hi Gambit,
Have you an example, or a link where could I see one?
Thanks
Lapo
PS. I'm still studying Critical Sections and Mutex like you suggested me for
Threads and CPU optimizations :-)
|
|
| Back to top |
|
 |
Lapo Guidi Guest
|
Posted: Mon Dec 08, 2003 9:58 pm Post subject: Re: TCustomEdit and TCustomGrid |
|
|
Well, I wrongly written that I derived from class TCustomGrid, but I started
from a TStringGrid component.
Is this the same?
Thanks
Lapo
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Dec 08, 2003 11:08 pm Post subject: Re: TCustomEdit and TCustomGrid |
|
|
"Lapo Guidi" <lapoguidi (AT) inwind (DOT) it> wrote
| Quote: | Well, I wrongly written that I derived from class TCustomGrid, but
I started from a TStringGrid component.
Is this the same?
|
Yes, because TStringGrid is a descendant of TCustomGrid.
Gambit
|
|
| Back to top |
|
 |
|