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 

insert image into richedit and richedit.refresh

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
eniac
Guest





PostPosted: Sat Jul 22, 2006 8:11 am    Post subject: insert image into richedit and richedit.refresh Reply with quote



Hi,
I want to insert jpeg/ico/... image into richedit.And then i want to resize image with mouse control like insert image into word.I hard work,i try many solutions but i can't found.

uses jpeg;
Image1:=TImage.Create(nil);
Image1.Parent:=RichEdit1;
if OpenPictureDialog1.Execute then
Image1.Picture.LoadFromFile(OpenPictureDialog1.FileName);

I try to create panel or scrollbox into richedit and so then i create image into panel or scrollbox.But it doesn't solution.
How can i insert image into richedit?

And when i insert image,panel,scrollbox,shape
//image1:=TImage.create(nil);
//image1.parent:=richedit1;
into richedit,richedit font colour is white.I am doing it clBlack but isn't solution.Maybe i can't use parent method.But how insert image into richedit?
And if i keypress enter(#13),its(image,panel,scrollbox,shape ) virtual view entered,real view not entered.I refresh richedit but not solution.
procedure TForm1.RichEdit1Change(Sender: TObject);
begin
RichEdit1.Refresh;
end;

How can i do these?Help me.Thanks.Good luck.
Back to top
Ralf Mimoun
Guest





PostPosted: Sat Jul 22, 2006 10:00 pm    Post subject: Re: insert image into richedit and richedit.refresh Reply with quote



eniac wrote:
Quote:
Hi,
I want to insert jpeg/ico/... image into richedit.And then i want to
resize image with mouse control like insert image into word.I hard
work,i try many solutions but i can't found.

Imho: forget it. You can't simply add a panel or scrollboy into a TRichEdit.
And you never know what version of richedit support you find on a computer:
My advice: use WPTools. It can handle bitmaps without any problems, it's
very robust, and you can do all the stuff you don't even imagine with
TRichEdit. Until now, I never found anything that was not possible with
WPTools.

Ralf
Back to top
eniac
Guest





PostPosted: Sun Jul 23, 2006 7:30 pm    Post subject: Re: insert image into richedit and richedit.refresh Reply with quote



"Ralf Mimoun" <nospam@rad-on.de> wrote:
Quote:
Imho: forget it. You can't simply add a panel or scrollboy into a TRichEdit.
And you never know what version of richedit support you find on a computer:
My advice: use WPTools. It can handle bitmaps without any problems, it's
very robust, and you can do all the stuff you don't even imagine with
TRichEdit. Until now, I never found anything that was not possible with
WPTools.

Ralf



Hi,i can insert image,panel,scrollbox into richedit but that time when i entered text into richedit,font colour is converting white.i don't see text.I think that problem is using
image1.parent:=richedit1; //parent is problem
for you?what do you think?can i insert image into richedit other ways?i installed wptools but it is demo(45 days).
Back to top
Ralf Mimoun
Guest





PostPosted: Mon Jul 24, 2006 3:37 am    Post subject: Re: insert image into richedit and richedit.refresh Reply with quote

eniac wrote:
....
Quote:
Hi,i can insert image,panel,scrollbox into richedit

You can put a panel over a RichEdit. But it will no become a part of the RTF
document. It simply happens to be somewhere over the area covered by the
RichEdit.


Quote:
but that time
when i entered text into richedit,font colour is converting white.i
don't see text.I think that problem is using
image1.parent:=richedit1; //parent is problem

That is simply not the way to handle RTF files. It's nothing Delphi-ish that
can integrate Delphi components. It's a capsule to access the MS RTF
control.

Quote:
for you?what do you think?can i insert image into richedit other
ways?i installed wptools but it is demo(45 days).

Then buy it if it does what you need.

Ralf
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi 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.