Links
EControl Syntax Editor SDK
TCustomSyntaxMemo.ProcessLine Method

Main line processing procedure.

function ProcessLine(Canvas: TCanvas; LineInfo: TLineInfo; Line: integer; ProcType: TProcessLineOper; R: TRect; Param: TPoint; FromPos: integer = 0; ToPos: integer = 0): TPoint;

Use ProcessLine for (ProcType parameter):

Value 
Meaning 
ptDrawing 
Renders line onto the Canvas
ptLineHeight 
Calculates line height. 
ptMouseToText 
Calculates in-text (caret) coordinates from mouse coordinates. 
ptTextToMouse 
Calculates mouse coordinates from in-text (caret) coordinates. 
ptTestOverCollapsed 
Tests whether point relative text area origin is over collapsed text icon. 
ptTestOverImage 
Tests whether point relative text area origin is over embedded object, returns index of embedded object. 

R is the line bounding rectangle. 

Param and Result of the ProcessLine depend on processing type.

Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!