COPY AND INSERT
COPY AND INSERT
1, in my RichViewEdit, i selected some text and gif(TGIFImage), and press CTRL+C, CTRL+P,bug only paste the text ,has not gif? is anywhere set wrong? i can copy form Demo Application.
2,in my RichViewEdit, i set caret pos at middle of some words,then insert one gif, how to get the latest inserted ItemNo(gif)? maby has many gif in RichViewEdit.
i used RichView a few days, so mush content, search some qustion is so slow.very thans.
2,in my RichViewEdit, i set caret pos at middle of some words,then insert one gif, how to get the latest inserted ItemNo(gif)? maby has many gif in RichViewEdit.
i used RichView a few days, so mush content, search some qustion is so slow.very thans.
Last edited by OldHawk on Sat Apr 01, 2006 11:37 am, edited 1 time in total.
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
i already register class in formMain.Create method:
RegisterClass(TGifImage);
CTRL+C,CTRL+P however has no image.
i maby already insert few gif in it, then i set caret to middle of them with mouse, and insert new gif, this time, the carset is not at after the latest inserted gif.
i select gif from a frame,and add to the parent form`s RichViewEdit.
RegisterClass(TGifImage);
CTRL+C,CTRL+P however has no image.
i maby already insert few gif in it, then i set caret to middle of them with mouse, and insert new gif, this time, the carset is not at after the latest inserted gif.
i select gif from a frame,and add to the parent form`s RichViewEdit.
Code: Select all
var gif: TGIFImage;
----
gif:=TGIFImage.Create;
gif.Assign(gr);
TformMsg(fmMsg).RichViewEditSend.InsertPicture(s,gif,rvvaBaseLine);
TformMsg(fmMsg).RichViewEditSend.Format;
hide;
TformMsg(fmMsg).RichViewEditSend.SetFocus;
-----
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
All Add*** methods need format. They should be used for document generation: rv.Clear, then calling one or more Add*** methods, then call rv.Format.
Generally, all methods for document modification introduced in TRichView need calling Format (they are marked in the help file as "viewer-style methods", all method introduced in TRichViewEdit reformat document automatically (they are marked in the help file as "editing-style methods").
See "Viewer vs Editor" help topic for details.
As for copy-pasting Gifs, see my answer before.
I do not know why bitmaps are not loaded. You can save this document in RVF file and send to me, I'll try to see what's wrong.
Generally, all methods for document modification introduced in TRichView need calling Format (they are marked in the help file as "viewer-style methods", all method introduced in TRichViewEdit reformat document automatically (they are marked in the help file as "editing-style methods").
See "Viewer vs Editor" help topic for details.
As for copy-pasting Gifs, see my answer before.
I do not know why bitmaps are not loaded. You can save this document in RVF file and send to me, I'll try to see what's wrong.
1, because i set rvoAutoCopyRVF to false,os i can`t copy bitmap from rv,i turn it true, is OK,can copy bitmap now.
2, i reRegister TGIFImage Class at Here
now can copy gif from one rv to other rv normal. but when i copy some text and gif together , or copy more than one gif, is same , the application is stop respond, CPU used 99% with my application,why? if i copy only one gif , it can work normal
2, i reRegister TGIFImage Class at Here
Code: Select all
begin
Application.Initialize;
RegisterClass(TGifImage);
Application.CreateForm(TformMain, formMain);
Application.Run;
end.
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: