trichview.com

trichview.support




Any way to clear contents in RichView (not edit!) viewer


Return to index


Author

Message

dk_sz

Posted: 02/16/2003 2:22:22


I have tryed a few different approaches.

I either have to destroy and recreate it or do something like:

"

  if RichView.Visible then

    begin

      RichView.Visible := False;

      RichView.Clear; // help explains this does not clear

      try

        RichView.LoadRTF('');

      except

        // ignore (!)

      end;

      //--

      Application.ProcessMessages;

    end;

"


Reason I clear it is if e.g. the form or frame where RichView is located

becomes invisible

- then there is no reason to have a large document "hanging" around in

memory.

This is a very minor grief, but still, any better ideas?




best regards

Thomas Schulz





Powered by ABC Amber Outlook Express Converter