 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
eniac Guest
|
Posted: Sat Jul 22, 2006 8:11 am Post subject: insert image into richedit and richedit.refresh |
|
|
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
|
Posted: Sat Jul 22, 2006 10:00 pm Post subject: Re: insert image into richedit and richedit.refresh |
|
|
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
|
Posted: Sun Jul 23, 2006 7:30 pm Post subject: Re: insert image into richedit and richedit.refresh |
|
|
"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
|
Posted: Mon Jul 24, 2006 3:37 am Post subject: Re: insert image into richedit and richedit.refresh |
|
|
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 |
|
 |
|
|
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
|
|