EControl Syntax Editor SDK
TCustomSyntaxMemo.OnLineHighLight Event

Occurs when line highlighting attributes are requested.

property OnLineHighLight: TGetLineHighlightEvent;

Write an OnLineHighLight event handler to adjust highlighting of the specified Line. Selected, bgColor, frColor are already initialized by the syntactical analyzer and by the gutter objects. To control line highlighting you must adjust this variables. If bgColor, frColor is clNone, so line highlighting is not used. If you want to highlight only background, you must assign only bgColor. 

If Selected is True, selection mark style will use inverted colors of line highlighting, otherwise it will use specified in TSyntAnalyzer style or default selection mark style.

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