Index

C/C++ Functions

txTextGetHighlighter

DT_SWORD txTextGetHighlighter(DT_TXDOC text_doc, DT_UBYTE cursor_blend_arr[], DT_UBYTE select_blend_arr[], DT_SWORD reserved)

Short Description: Get text document's highlighter

The txTextGetHighlighter function returns the text document's highlighter. The highlighter supplies the blend mode and color needed to render the cursor and active text selections. These values are normally set by txTextSetHighlighter.

Parameters

ParameterDescription

power_doc

Handle of the previously created Power Engine document.

cursor_blend_arr

An array of five bytes (BM, C1, C2, C3 and C4) specifying the blend mode and color of the cursor. See txTextSetHighlighter for details.

select_blend_arr

An array of five bytes (BM, C1, C2, C3 and C4) specifying the blend mode and color of any active text selections. See txTextSetHighlighter for details.

reserved

Reserved for future use. Must be set to 0.

Return Value

If successful, the return value is 1. Otherwise, the function returns 0.

Related Functions

txTextSetHighlighter

 

Index