red box in paragraphs
red box in paragraphs
Why a box appears red lines around a paragraph?. I remember not defined as a box that appears. Thank you.
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Red border around paragraphs occur in documents containing invalid paragraph indices.
For example, if rv.Style.ParaStyles.Count = 3, and you call
you will see this red border. This red border is defined in RVStyle.ParaStyles.InvalidItem property.
For example, if rv.Style.ParaStyles.Count = 3, and you call
Code: Select all
rv.AddNL('hello', 0, 10);
rv.Format;
how to draw a shape, for example, a line or a box?
Thanks for the reply. I make another question: how to draw a shape, for example, a line or a box?.
Thank you.
Thank you.
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
http://www.trichview.com/support/files/insertcircle.zip
This example shows 3 ways to insert a figure in TRichViewEdit:
- using TPaintBox component
- using TShape component
- using TMetafile.
As for me, I think using TMetafile is the best method, because it provides a high quality printing.
The current version TRichView does not print components inherited from TGraphicControl, including TPaintBox and TMetafile.
This demo uses OnPrintComponent event to print PaintBox, but cannot print TShape.
In the next TRichView update, it will be able to print any TGraphicControl even without this event.
However, in any case, controls are printed by drawing in a temporal bitmap, then printing this bitmap. Because of this, a printing quality of controls is lower than a printing quality of metafiles.
For simplicity, this demo does not include code necessary to resize and drag inserted controls. See http://www.trichview.com/forums/viewtopic.php?t=157
This example shows 3 ways to insert a figure in TRichViewEdit:
- using TPaintBox component
- using TShape component
- using TMetafile.
As for me, I think using TMetafile is the best method, because it provides a high quality printing.
The current version TRichView does not print components inherited from TGraphicControl, including TPaintBox and TMetafile.
This demo uses OnPrintComponent event to print PaintBox, but cannot print TShape.
In the next TRichView update, it will be able to print any TGraphicControl even without this event.
However, in any case, controls are printed by drawing in a temporal bitmap, then printing this bitmap. Because of this, a printing quality of controls is lower than a printing quality of metafiles.
For simplicity, this demo does not include code necessary to resize and drag inserted controls. See http://www.trichview.com/forums/viewtopic.php?t=157