trichview.com

trichview.support




Re: clear method


Return to index


Author

Message

Sergey Tkachenko

Posted: 10/16/2004 19:40:24


Do you need to clear items in the active cell or in the whole editor?

If the latter, you do not need to worry about tables and inplaceeditors,

just call


RichViewEdit1.Clear;

RichViewEdit1.Format;


(in the current version, table inplace editor cannot be subclassed)


> I found that the richviewedit.clear function doesn't work exactly as i

> expected it to.  If the caret is in a table when it's called, then clear

> doesn't get rid of all the items.

> In my class, which is a descendent of trichviewEdit, I need to run this

> code:

>

>    if topLevelEditor <> self then

>       topLevelEditor.Clear;

>    clear;

>

> Is this to be expected?  Or am i making wrong assumptions, or is the clear

> function imcomplete?

>

> Thanks,

> Daniel





Powered by ABC Amber Outlook Express Converter