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 

Writing a RichEdit with Canvas

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





PostPosted: Sun Aug 10, 2003 4:16 pm    Post subject: Writing a RichEdit with Canvas Reply with quote



I am beginning studying Inheritance and Component Designing at
C++Builder. I have practice in using copmponents, but few in
writing them. I would like to make a TRichEdit that has a transparent
background. Would it be sufficient to inherit a new component
from TCustomRichEdit and to have in new component an instance
of TCanvas, making the brush property clear?
I have an application in which I worked hardly that
would benefit a lot if that would be possible.

I tried to make what is described above and
I receive a compiler message error like this:


[C++ Error] NewRichEdit.cpp(24): E2285 Could not find a match for
'TCanvas::TCanvas(TNewRichEdit * const)'


I thank if I could get an your answer about.

Antonio




Back to top
miguel
Guest





PostPosted: Wed Aug 13, 2003 9:21 am    Post subject: Re: Writing a RichEdit with Canvas Reply with quote



Grettings

the error is due to the fact that there's no constructor in TCanvas with the
signature:

TCanvas::TCanvas(TNewRichEdit * const)

only

__fastcall TCanvas::TCanvas(void);

notice that you have TWinControl::Brush by inheritance in the class
TCustomRichEdit!

regards

miguel


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.