trichview.com

trichview.support




Re: freeing controls


Return to index


Author

Message

Sergey Tkachenko

Posted: 02/13/2005 20:11:04


> What exactly does DeleteSelection do? Does it free the memory for the

control

> just like Clear??


If undo is enabled (UndoLimit<>0), the editor hides the control ("moves" it

to undo buffer).

The control is not destroyed yet and can be returned by redo operation.

If the size of undo buffer is limited (UndoLimit is positive), the control

can be destroyed in the undo buffer when the number of stored operations

exceeds the limit.



>

> Would I be better off to create the instance once when I first format the

> document and simply make the button visible/non-visible when I need it for

> user input? I would have to move around the item (cut/paste) in code. If

> this is a better way of doing things, could you give me the most efficient

> code that selects an item and moves it to the end of a document?

>


Can you explain what do you want to achieve?





Powered by ABC Amber Outlook Express Converter