2.3.1.64 GETN_OPTION_MUTILINE_TEXT_BOX


Name

GETN_OPTION_MUTILINE_TEXT_BOX

Declaration

#define GETN_OPTION_MUTILINE_TEXT_BOX(_bREADONLY, _RANGE, _FIXED_FONT) _tmpSubNode.SetAttribute(STR_MULTI_EDT_EXPSHR_ATTRIB, 1); if(_bREADONLY) _tmpSubNode.Enable = ENABLE_READONLY_SCROLL; if(_FIXED_FONT)_tmpSubNode.SetAttribute(STR_ATTRIB_DISPFMT, DISPLAY_EDITOR_WRAPPED|DISPLAY_EDITOR_FIXED_FONT);else _tmpSubNode.SetAttribute(STR_ATTRIB_DISPFMT, DISPLAY_EDITOR_WRAPPED); _tmpSubNode.SetAttribute(STR_ATTRIB_MULTILINE_EDIT_DISPLAY_ROW_HEIGHT_RANGE, _RANGE);

Remark

This macro enable multiline text control to collapse and expand with user settings

Parameters

_bREADONLY
[input] specify whether text are read only
_RANGE
[input] specify number of lines showed when collapse and expand, with format like "nCollapse-nExpand"
_FIXED_FONT
[input] whether to fix the font of the text

Return

Examples

EX1

#include <GetNbox.h>
void GETN_OPTION_MUTILINE_TEXT_BOX_ex1()
{
    GETN_BOX(trRoot)
    GETN_MULTILINE_TEXT(Constraints, "Constraints", "Start Origin")
        //GETN_EDIT_DISPLAY_WIDTH_RANGE("20-8")
        GETN_OPTION_MUTILINE_TEXT_BOX(false, "2-10", true)
        
    if ( GetNBox(trRoot) )
        out_tree(trRoot);
    return;
}

See Also

GETN_MULTILINE_TEXT

Header to Include

GetNBox.h

Reference