Internal Picture Drag Drop Failure!

General TRichView support forum. Please post your questions here
Post Reply
viperpix
Posts: 39
Joined: Sat Jan 15, 2011 9:38 am

Internal Picture Drag Drop Failure!

Post by viperpix »

Hi,
i've been asked this before but no answer :)
while i have some pictures inside the text and i try to change the position of any of these pictures by mouse, the picture is lost and seems to be deleted!
i wanna know what kind of event can cause this, cuz this never happened before and i dont know when this started!
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Internally, dragging is implemented using saving and loading from RVF format.
For RVF loading, the image class must be registered.
The following image formats are registered by default: TBitmap, TMetafile, TIcon, TJpegImage.
For other formats, call RegisterClass one time, when the application starts.
viperpix
Posts: 39
Joined: Sat Jan 15, 2011 9:38 am

..

Post by viperpix »

Thanks but my the pictures all are JPEG or BMP, and i've been using these pictures be4 and had no problem, this problem occurred lately!
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Make sure that rvfoSavePicturesBody is included in RVFOptions property.
Otherwise, pictures will not be loaded from RVF, if you do not provide them in OnRVFPictureNeeded event.

If my guess is incorrect and this option is included, I need a sample document and instructions how to reproduce this problem.
viperpix
Posts: 39
Joined: Sat Jan 15, 2011 9:38 am

.

Post by viperpix »

yes, this option is included!
i have created a new proj, and made a copy of my rve into it, but it worked wel with dragin!!
what kind of events can affect that?
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

What's the value of AcceptDragDropFormats property?
viperpix
Posts: 39
Joined: Sat Jan 15, 2011 9:38 am

Finally

Post by viperpix »

OHHH YESSS, Somewhere in my code it changes to text only, and thats the problem!!
Thanks A LOT :D
Post Reply