GETN_MULTILINE_TEXT

 

Name

GETN_MULTILINE_TEXT

Declaration

#define     GETN_MULTILINE_TEXT(_NODE_NAME, _NODE_LABEL, _DEFAULT_VAL)    _tmpSubNode = _tmpNode.AddTextNode(_DEFAULT_VAL, #_NODE_NAME, TRGP_MULTILINE_TEXT);TREE_ADD_LABEL(_NODE_LABEL);

Remark

This macro creates a multi-line text edit box in the dialogbox.

Parameters

_NODE_NAME
[input] the name of the new node to be added to the tree
_NODE_LABEL
[input] the string value to show the a multi-line text edit box label in the dialogbox
_DEFAULT_VAL
[input] string text contents as the default value to show in the edit box

Return

Examples

EX1

#include <GetNbox.h>
void GETN_MULTILINE_TEXT_ex1()
{
    string strShow = "Hello\nWorld, \nWelcome to OriginLab \nPlease buy Pro version.....^_^\n"
                    +"                     Test by OriginLab";
    GETN_TREE( treeTest );
    GETN_MULTILINE_TEXT(MultilineTest1, "Multiline Test1", strShow);
                GETN_MULTILINE_EDIT_DISPLAY_ROW_HEIGHT_RANGE("5-10")
                GETN_EDIT_DISPLAY_WIDTH_RANGE( "30-40" )
    GetNBox(treeTest, "test", "Test...", NULL, NULL);
    out_tree(treeTest);
}

See Also

GETN_OPTION_MUTILINE_TEXT_BOX, GETN_MUTILINE_EDIT_ROLLUP_BUTTON, GETN_EDIT_DISPLAY_WIDTH_RANGE, GETN_MULTILINE_EDIT_DISPLAY_ROW_HEIGHT_RANGE

header to Include

GetNbox.h

Reference