www.gnostice.com 

 

DrawRichText procedure (TgtCustomDocumentEngine)

TgtCustomDocumentEngine

Top 

procedure DrawRichText(RichEdit: TRichEdit; ALeft, ATop, ARight,

ABottom: Double; StartPos, EndPos: Integer; BackgroundColor: TColor);

overload;

 

procedure DrawRichText(RichEdit: TRichEdit98; ALeft, ATop, ARight,

ABottom: Double; StartPos, EndPos: Integer; BackgroundColor: TColor);

overload;

 

procedure DrawRichText(RichEdit: TJvRichEdit; ALeft, ATop, ARight,

ABottom: Double; StartPos, EndPos: Integer; BackgroundColor: TColor);

overload;

 

 

Description

 

Call DrawRichText to render the contents of the RichEdit, RichEdit98 or JEDI RichEdit onto the document at the specified position. The first procedure supports TRichEdit the second procedure supports TRichEdit98 and third TJvRichEdit(JEDI RichEdit).

 

ALeft, ATop, ARight & ABottom: Specifies the rectangular region within which the rich-text needs to be rendered.

BackgroundColor: Specifies the background color of the rectangular region.

StartPos: StartPos is an integer representing the start position. To start from the beginning of the document this would be set to 0.

EndPos: EndPos is an integer representing the end position. If this is set to -1 then it renders the whole document.