Page 1 of 1

Event after internal drag & drop?

Posted: Sun Apr 27, 2014 5:02 am
by Jim Knopf
Is there an event that is fired after internal drop?

E.g. you select some words and move them to another place in the text. If the user drops the selection I'd like to implement a routine to correct double or none spaces. For it I need an event but couldn't find one that fits.

Posted: Sun Apr 27, 2014 11:51 am
by Jim Knopf
In the meantime I solved the problem in this way (not very fashionable but it works):

1. At rvSelect event I save the selected Text to FLastSelection (only if <> '')
2. At rvItemAction event I compare FLastSelection to 'Text' parameter and if TRVItemAction = rviaInserting. Unfortunately then I have to use a timer to correct the text (remove double space aso.) because I cannot manipulate the current text within rvItemAction.

Do you have a smarter suggestion then a timer?