Discussion:
memo with images
(too old to reply)
abc
2007-08-16 23:35:17 UTC
Permalink
i would like to ask if there is any memo box that i can also put images
inside. for
example i need a memo style box where text can be entered along with
pictures
(something like most messenger programs). Is there any third party tool you
would recommend?

thanks
Remy Lebeau (TeamB)
2007-08-17 01:22:59 UTC
Permalink
Post by abc
i would like to ask if there is any memo box that i can also
put images inside.
A standard TRichEdit can do that. It is not trivial to implement, though,
so you should use a third-party implementation, such as Robert Dunn's
TRichEditOle class or his TaeRichEdit component. Both are available at
http://home.att.net/~robertdunn/Yacs.html


Gambit
JD
2007-08-18 00:38:44 UTC
Permalink
[...] is any memo box that i can also put images inside.
Gambit is quite correct in as much as he boycotted a TMemo
and informed you that using a TRichEdit 'is not trivial'.
for example i need a memo style box where text can be
entered along with pictures (something like most messenger
programs).
Where he and I differ is that in reading your post, I hear
that you want to do an IM-type window.
Is there any third party tool you would recommend?
None that I know of but I haven't ventured this way.

Try google:

c++ messenger

looks promising.

~ JD
Remy Lebeau (TeamB)
2007-08-18 00:45:18 UTC
Permalink
Post by JD
Where he and I differ is that in reading your post, I hear
that you want to do an IM-type window.
TRichEdit can be used for that.


Gambit
abc
2007-08-18 17:03:21 UTC
Permalink
i read the help in borland and it doesnt say anything about being able to
add images along with
the text. i tryed to install the third party tool you suggested but i get
some weird errors with my builder 2006.

can i actually add pictures in trichedit?how?

i would like to remind that i need a memo style window that i will be able
to add normal text together with images.
thank you for your time.

Kind Regards
Post by Remy Lebeau (TeamB)
Post by JD
Where he and I differ is that in reading your post, I hear
that you want to do an IM-type window.
TRichEdit can be used for that.
Gambit
Remy Lebeau (TeamB)
2007-08-20 18:01:46 UTC
Permalink
Post by abc
i read the help in borland and it doesnt say anything
about being able to add images along with the text.
It wouldn't. It is not a feature that the VCL exposes. You have to use the
IRichEditOle interface directly for it, specifically its InsertObject()
method.

Again, please go to the website I directed you to earlier. It has code
samples that demonstrate how to do what you are asking for.
Post by abc
i tryed to install the third party tool you suggested but i
get some weird errors with my builder 2006.
You need to be more specific.
Post by abc
can i actually add pictures in trichedit?
Yes.
Post by abc
how?
The code on that website shows you how.
Post by abc
i would like to remind that i need a memo style window
that i will be able to add normal text together with images.
That will work just fine with a TRichEdit.


Gambit

Loading...