trichview.com

trichview.support




Re: clear procedure and background


Return to index


Author

Message

Sergey Tkachenko

Posted: 01/26/2004 23:47:02


Ok, now I understand.

First I thought you have described a repainting bug.

No, Clear does not remove the image. You need to remove it yourself.


When you use RichViewActions, they do this for yourself.

RichViewActions execute this code on new document:

  rve.Color                   := ControlPanel.DefaultColor;

  rve.LeftMargin              := ControlPanel.DefaultMargin;

  rve.RightMargin             := ControlPanel.DefaultMargin;

  rve.TopMargin               := ControlPanel.DefaultMargin;

  rve.BottomMargin            := ControlPanel.DefaultMargin;

  rve.BackgroundBitmap.Handle := 0;

  rve.BackgroundStyle         := bsNoBitmap;


The last two lines clears the background.


PS: I removed your message with attachment due to its size (it's better to

send files larger than 15K to me by e-mail).



>

>

> > I always use format after clear but it does not help to erase the

> > background.

>

>





Powered by ABC Amber Outlook Express Converter