ToolsAPI.Editor.INTACodeEditorEvents.PaintText

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure PaintText(const Rect: TRect; const ColNum: SmallInt; const Text: string;
const SyntaxCode: TOTASyntaxCode; const Hilight, BeforeEvent: Boolean;
var AllowDefaultPainting: Boolean; const Context: INTACodeEditorPaintContext);

C++

virtual void __fastcall PaintText(const System::Types::TRect &Rect, const short ColNum, const System::UnicodeString Text, const Toolsapi::TOTASyntaxCode SyntaxCode, const bool Hilight, const bool BeforeEvent, bool &AllowDefaultPainting, const _di_INTACodeEditorPaintContext Context) = 0 ;

Properties

Type Visibility Source Unit Parent
procedure
function
public
ToolsAPI.Editor.pas
ToolsAPI.Editor.hpp
ToolsAPI.Editor INTACodeEditorEvents

Description

Fires one event for each part of the code (i.e., every keyword, number, comment, etc.)

To get notifications from the PaintText method you should add cevPaintTextEvents in the AllowedEvents result.

See Also