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 

richedit with image and background

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





PostPosted: Sat Nov 26, 2005 3:01 pm    Post subject: richedit with image and background Reply with quote




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





PostPosted: Sat Nov 26, 2005 4:25 pm    Post subject: Re: richedit with image and background Reply with quote



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





PostPosted: Mon Nov 28, 2005 5:43 pm    Post subject: Re: richedit with image and background Reply with quote




"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





PostPosted: Tue Nov 29, 2005 7:08 pm    Post subject: Re: richedit with image and background Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) 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.