GETN_OPTION_MUTILINE_TEXT_BOX
#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);
This macro enable multiline text control to collapse and expand with user settings
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; }
GETN_MULTILINE_TEXT
GetNBox.h