Page 1 of 1

Internal Picture Drag Drop Failure!

Posted: Sun Feb 20, 2011 8:16 am
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!

Posted: Sun Feb 20, 2011 11:30 am
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.

..

Posted: Wed Feb 23, 2011 6:32 am
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!

Posted: Wed Feb 23, 2011 7:57 am
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.

.

Posted: Wed Feb 23, 2011 10:38 am
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?

Posted: Wed Feb 23, 2011 5:52 pm
by Sergey Tkachenko
What's the value of AcceptDragDropFormats property?

Finally

Posted: Thu Feb 24, 2011 5:29 am
by viperpix
OHHH YESSS, Somewhere in my code it changes to text only, and thats the problem!!
Thanks A LOT :D