trichview.com

trichview.support




Re: React on control deletion


Return to index


Author

Message

Sergey Tkachenko

Posted: 12/03/2002 21:19:05


The following things can happen with the control:

- rvcaDestroy : the control is deleted from the editor and memory for it is

freed; it usually happens when you call Clear;

- rvcaMoveToUndoList : the control is removed from editor as a result of

editing operation, but it is not destroyed physically; it is invisible and

is stored in "undo buffer"

- rvcaMoveFromUndoList: the control is returned back to editor when user

calls "undo" or "redo"

- rvcaDestroyInUndoList: the control is destroyed and memory for it is

freed; but this control is already not in editor but in "undo buffer".



>

> Hallo,

>

> I would like to react when the user deletes a TImage control within a

RichViewEdit

> component. I found a thread here where it is suggested to use the

OnControlAction

> event. I tried this, but when the user deletes the image (e.g. by placing

> the caret behind the image and typing BACKSPACE) the OnControlAction event

> is triggered with the ControlAction parameter set to rvcaMoveToUndoList.

> But this ControlAction type can occur in many situations and does not

necessaryly

> mean that a control is deleted (at least to my knowledge). How can I

determine

> when a control is deleted?

>

> Thanks in advance,

>

> Christian Kirchhoff





Powered by ABC Amber Outlook Express Converter