GETN_SYNTAXEDIT_LEXER_TYPE

 

Name

GETN_SYNTAXEDIT_LEXER_TYPE

Declaration

#define GETN_SYNTAXEDIT_LEXER_TYPE(_NLEXERTYPE)   _strTemp = _NLEXERTYPE;_tmpSubNode.SetAttribute(STR_ATTRIB_MULTILINE_SYNTAX_EDIT_LEXER_TYPE, _strTemp);

Remark

Set multiline syntax edit box's lexer type.

Parameters

_NLEXERTYPE
[input] lexer type. See OLexerType in OC_const.h

Return

Examples

EX1

void test_mult_edit_box()
{
    GETN_TREE(tr)
        GETN_MULTILINE_SYNTAX_TEXT(cmt, "Syntax: Text", "lexed type is text") 
                GETN_SYNTAXEDIT_LEXER_TYPE(OLEXERTYPE_TEXT)
                GETN_EDIT_DISPLAY_WIDTH_RANGE("60-60")
                GETN_MULTILINE_EDIT_DISPLAY_ROW_HEIGHT_RANGE("3-3")
                
        GETN_MULTILINE_SYNTAX_TEXT(cms, "Syntax: OC", "lexed type is oc") 
                GETN_SYNTAXEDIT_LEXER_TYPE(OLEXERTYPE_OC)
                GETN_EDIT_DISPLAY_WIDTH_RANGE("60-60")
                GETN_MULTILINE_EDIT_DISPLAY_ROW_HEIGHT_RANGE("3-3")
                
        GETN_MULTILINE_TEXT(note, "Normal", "font is normal")
                GETN_MULTILINE_EDIT_DISPLAY_ROW_HEIGHT_RANGE("3-3")
                
    if( GetNBox(tr ))
        out_tree( tr );
}

Header to Included

GetNBox.h

Reference

See Also

GETN_MULTILINE_SYNTAX_TEXT