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!
Using of OnCut event
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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!