2.3.1.70 GETN_OPTION_MANUAL_RESIZE


Name

GETN_OPTION_MANUAL_RESIZE

Declaration

#define GETN_OPTION_MANUAL_RESIZE(_STR)		_tmpNode.SetAttribute(STR_RESIZE_DIALOG, _STR);

Remark

GetNBox by default is not resizable, the dialog size is automatically determined to avoid scroll bars in the DynaControl, but you can turn this off and to allow manual resizing

Parameters

_STR
a string to allow the size to be initialize and to remember between sessions. It is in the form of cx|cy|name

Return

Examples

EX1

#include <GetNbox.h>
void GETN_OPTION_MANUAL_RESIZE_ex1()
{
    string strText = "Line1\nLine2\nLine3";
    GETN_TREE(tr) GETN_OPTION_MANUAL_RESIZE("200|300|AddUserCommentsDlg")
    GETN_STR(comments, "", strText)
    GETN_MULTILINE_TEXT(comments, " ", strText) GETN_OPTION_DISPLAY_FORMAT(DISPLAY_EDITOR_LEFT)
    if(!GetNBox(tr, "User Comments", "Add Comments to a Table"))
        out_tree( tr );
}

See Also

GETN_BOX, GETN_TREE

Header to Include

GetNbox.h

Reference