trichview.com

trichview.support




Re: Detecting the items being deleted


Return to index


Author

Message

Andrew Chichlowski

Posted: 06/10/2004 5:43:00


Hi Sergey,


"Sergey Tkachenko" <svt@trichview.com> wrote in message

news:40c70a3c$2@support.torry.net...

> OnItemAction event, rviaMovingToUndoList

>

> When you select items and delete them, they are not actually deleted

(unless

> UndoLimit=0), they are moved to undo list, and can be moved back by Redo

> command.

>


This is understood and this does not contradict to my view. Physically items

get moved to undo list, logically they are deleted (disappear from screen

and from TRichViewEdit collections).


Question remains: when and how I could detect (iterate or collect) which

items were deleted (moved to undo list)?


My motivation: I need this information to post-process deleted (moved to

undo list) items, for example replace them with "default" values.


> >

> > Let's suppose user selects few items in RichViewEdit, then deletes them

> (by

> > pressing VK_DELETE). Is there known way of detecting which items exactly

> > were deleted? I need at least a way to iterate through deleted items

> (before

> > or after deletion).

>


Thanks in advance, Andrew Chichlowski.





Powered by ABC Amber Outlook Express Converter