Page 1 of 1

How to know when a drop has finished ?

Posted: Sat Sep 17, 2005 8:36 pm
by Stef
After a drop I want to move the dropped content to the definite RVE and clear the temporary RVE, which I use as drop container.

Posted: Sun Sep 18, 2005 8:05 am
by Sergey Tkachenko
If it's for that drag&drop program, I think you can use OnChange

Posted: Sun Sep 18, 2005 9:24 am
by Stef
Yes Sergey,
it's indeed for that drag&drop part,
if you're interested, take a look at the description of the drag&drop part here

http://oase.uci.kun.nl/~mientki/pic/jal ... _drop.html

Question: do you it's usefull, that I create a small application, based on this issue for the example section, or do you want to keep the example section clean with just your examples ?

btw, If you click on the mainindex, you can see what the program as a whole should become. I need a number of weeks to add some essential functions to the program, after that I'll ask you to add the JALcc program to your RichView Applications section ;-)

About the "onFinishDrop", I'll try the OnChange event, but I expects that it will be fired more then once, also halfway the drop action ??

cheers,

Posted: Sun Sep 18, 2005 2:33 pm
by Sergey Tkachenko
I created the demo solving this problem:
http://www.trichview.com/forums/viewtopic.php?t=132
OnChange may really be called several times (when user drops multiple files).

I'll be glad to add your example in the forum, and your application on my site :)

Posted: Sun Sep 18, 2005 6:33 pm
by Stef
AMAZING !!

Posted: Sun Sep 18, 2005 9:30 pm
by Stef
Sorry I'm too unfamiliar with events in components,
and I really would like to have the DragOver event in TRichViewTarget.

You've already a comment line in code to "implement onDragOver",
but I couldn't find the solution how to implement this by trial and error :-(

I just need the X-coordinate during dragover, to animate the picture.

please ...

thanks,

Posted: Sun Sep 18, 2005 9:33 pm
by Sergey Tkachenko
Ok, I'll post an update tomorrow.

Posted: Mon Sep 19, 2005 2:05 pm
by Sergey Tkachenko
Done