| View previous topic :: View next topic |
| Author |
Message |
Antonio Guest
|
Posted: Sun Aug 10, 2003 4:16 pm Post subject: Writing a RichEdit with Canvas |
|
|
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
|
Posted: Wed Aug 13, 2003 9:21 am Post subject: Re: Writing a RichEdit with Canvas |
|
|
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 |
|
 |
|