Solved

Graphic in Rich text?

Posted on 1998-10-16
5
169 Views
Last Modified: 2010-04-06
I am trying to load a rtf file containing a graphic into a richedit. It will load only the lines, but i do not know how to load the graphics?
0
Comment
Question by:zonk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 8

Accepted Solution

by:
ZifNab earned 50 total points
ID: 1343138
zonk,

this is not possible, because the Trichedit is a descendant of the windows richedit, which doesn't has these capabilities...

Just test it by pasting a wordpad text with image to your richedit... text will be displayed, but image not!

Go to this page and download this freeware component

TRichEditWithOle

find sources etc at his homepage http://wet.kiss.uni-lj.si/~k4fe0106/ 

also, look at this thread ...

http://www.experts-exchange.com/topics/comp/lang/delphi/Q.10077554

Regards, Zif.
0
 
LVL 2

Expert Comment

by:Thaddy
ID: 1343139
Ziffnab is not completely Right. The control itself has a couple of com extensions that are not implemented in the VCL (Omission from borland/inprise).
(But you can still do the trick)
Yes, this IS possible, even easy, with a little trickery.

You need to implement just two -documented- COM interfaces
-IRichEditOleCallback
-IRichEditOle
I found them a couple of years ago in MS C++ headerfiles.
RichOle.h.
I'll send you an answer if you want. It works great!
The code is a simplified version of something I found on the web,
I simplified it for an SDGN session by me last September.

0
 
LVL 2

Expert Comment

by:Thaddy
ID: 1343140
Ziffnab is not completely Right. The control itself has a couple of com extensions that are not implemented in the VCL (Omission from borland/inprise).
(But you can still do the trick)
Yes, this IS possible, even easy, with a little trickery.

You need to implement just two -documented- COM interfaces
-IRichEditOleCallback
-IRichEditOle
I found them a couple of years ago in MS C++ headerfiles.
RichOle.h.
I'll send you an answer if you want. It works great!
The code is a simplified version of something I found on the web,
I simplified it for an SDGN session by me last September.

0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1343141
Hi Thaddy, correct, that's why I gave the link to the component, which implements them. Zif.
0
 

Author Comment

by:zonk
ID: 1343142
SO the two solutions are identical?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses
Course of the Month6 days, 3 hours left to enroll

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question