| View previous topic :: View next topic |
| Author |
Message |
Alfred Guest
|
Posted: Sat Nov 26, 2005 3:01 pm Post subject: richedit with image and background |
|
|
Hi, i am trying to insert a image and a background image into a richedit control with no result..
Any idea ?
Thank you very much
Alfred
|
|
| Back to top |
|
 |
Michel Leunen Guest
|
Posted: Sat Nov 26, 2005 4:25 pm Post subject: Re: richedit with image and background |
|
|
Alfred wrote:
| Quote: | Hi, i am trying to insert a image and a background image into a richedit control with no result..
Any idea ?
|
You can't. At least with the Trichedit component shipped with BCB.
Look here for a TRichEditole component supporting embedded graphics.
Maybe it's what you're looking for:
http://home.att.net/%7Erobertdunn/Yacs.html
Michel
--
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Nov 28, 2005 5:43 pm Post subject: Re: richedit with image and background |
|
|
"Michel Leunen" <nospam (AT) noreply (DOT) please> wrote
| Quote: | You can't. At least with the Trichedit component shipped with BCB.
|
You can insert images with the standard TRichEdit component. You just have
to work with the IRichEditOle interface directly. Use the
EM_GETOLEINTERFACE message to get a pointer to the IRichEditOle interface,
and then you can use its InsertObject() method to insert images. That is
the same thing that Robert Dunn's component does internally.
| Quote: | Look here for a TRichEditole component supporting embedded graphics.
|
TRichEditOle is not a component. It is a helper class that attaches to the
standard TRichEdit to provide access to the IRichEditOle interface. If you
want to use an actual standalone component, then you are probably thinking
of Robert's TaeRichEdit component instead.
Gambit
|
|
| Back to top |
|
 |
Michel Leunen Guest
|
Posted: Tue Nov 29, 2005 7:08 pm Post subject: Re: richedit with image and background |
|
|
Remy Lebeau (TeamB) wrote:
| Quote: | You can insert images with the standard TRichEdit component. You just have
to work with the IRichEditOle interface directly.
Look here for a TRichEditole component supporting embedded graphics.
TRichEditOle is not a component. It is a helper class that attaches to the
standard TRichEdit to provide access to the IRichEditOle interface.
|
Hmm, it seems that I must be more precise in my answers even if I found
you're a little nitpicking here :-)
Michel
--
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------
|
|
| Back to top |
|
 |
|