SET_EDITBOX_RESIZABLE

 

Contents

Name

SET_EDITBOX_RESIZABLE

Declaration

#define SET_EDITBOX_RESIZABLE(_STATE)            _tmpSubNode.SetAttribute(STR_MULTI_EDT_EXPSHR_ATTRIB, _STATE);

Remark

Set multiline line edit show range. The min show rows and max show rows.

Parameters

_STATE

Return

Examples

EX1

#include <GetNbox.h>

void GETN_MULTILINE_EDIT_DISPLAY_ROW_HEIGHT_RANGE_ex1()
{
    string strShow = "Hello\nWorld, \nWelcome to OriginLab \nPlease buy Pro version.....^_^\n                     Test by OriginLab";
    string strShow1 = "Must show one line,but min rows is 3";
    string strShow2 = "May not show all, because by limited by dialog size.\nFirst Line\nSecond Line\nThird Line\n Fourth Line \n Fith Line\n sixth Line\n 7Th line\n8Th line\n9th line\n10th Line";
    string strShow3 = "Show all, because is readonly.\nFirst Line\nSecond Line\nThird Line\n Fourth Line \n Fith Line\n sixth Line\n 7Th line\n8Th line\n9th line\n10th Line";
    string strEditRange = "4-300";
    GETN_TREE( treeTest );
    GETN_MULTILINE_TEXT(MultilineTest, "Multiline Test", strShow)
    GETN_MULTILINE_TEXT(MultilineTest1, "Multiline Test", strShow1)
    GETN_MULTILINE_TEXT(MultilineTest2, "Multiline Test", strShow2)
    GETN_MULTILINE_TEXT(MultilineTest3, "Multiline Test", strShow3)
    GETN_READ_ONLY
    GETN_MULTILINE_TEXT(MultilineTest4, "Multiline Test", "")
    GETN_MULTILINE_EDIT_DISPLAY_ROW_HEIGHT_RANGE(strEditRange)
    GetNBox(treeTest, "test", "Test...", NULL, NULL)
}

header to Include

GetNbox.h

Reference