BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TCustomEdit and TCustomGrid

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development)
View previous topic :: View next topic  
Author Message
Lapo Guidi
Guest





PostPosted: Mon Dec 08, 2003 6:02 pm    Post subject: TCustomEdit and TCustomGrid Reply with quote



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





PostPosted: Mon Dec 08, 2003 6:17 pm    Post subject: Re: TCustomEdit and TCustomGrid Reply with quote




"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





PostPosted: Mon Dec 08, 2003 6:46 pm    Post subject: Re: TCustomEdit and TCustomGrid Reply with quote



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





PostPosted: Mon Dec 08, 2003 9:58 pm    Post subject: Re: TCustomEdit and TCustomGrid Reply with quote

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





PostPosted: Mon Dec 08, 2003 11:08 pm    Post subject: Re: TCustomEdit and TCustomGrid Reply with quote


"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.