Event after internal drag & drop?

General TRichView support forum. Please post your questions here
Post Reply
Jim Knopf
Posts: 241
Joined: Mon Dec 30, 2013 10:07 pm
Location: Austria
Contact:

Event after internal drag & drop?

Post 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.
Jim Knopf
Posts: 241
Joined: Mon Dec 30, 2013 10:07 pm
Location: Austria
Contact:

Post 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?
Post Reply