Page 1 of 1
Using of OnCut event
Posted: Tue Oct 05, 2010 10:12 am
by vit
There is TRichViewEdit.OnCut event. But it is disabled by RVONCUT directive, wich is disabled by default. Can I enable RVONCUT in RV_Defs.inc to use OnCut event?
Thank you!
Posted: Tue Oct 05, 2010 12:00 pm
by Sergey Tkachenko
Yes, you can do it.
This event was requested so I added it, but I still think it useless (because Cut = Copy + Delete), so I disabled it.
Posted: Wed Oct 06, 2010 7:55 am
by vit
Sergey Tkachenko wrote:because Cut = Copy + Delete
If I understood you right, I can use OnItemAction to detect deletion action. So I can detect cutting action by determination this actions sequence:
1. OnCopy event is fired
2. OnItemAction is fired with ItemAction = rviaTextModifying or rviaMovingToUndoList
Or may be there is simpler way to detect cutting action without using OnCut property?
Thank you!