GETN_TREE

 

Contents

Name

GETN_TREE

Declaration

#define GETN_TREE(_TR_NAME)       GETN_NAMED_TREE(_TR_NAME, GetNTree)

Remark

GETN_TREE constructs a base GetNbox tree, the main treenode's tagName is GetNTree.

This macro type can only be used once in one function, otherwise it will create "duplicate declaration" compile error.

Can't use in one function of following marco in pairs too, GETN_BOX,GETN_USE

Parameters

_TR_NAME
[input]The tree name.

Return

Examples

EX1

#include <GetNbox.h>
void GETN_TREE_ex1()
{
    GETN_TREE(testTree) 
    GETN_CHECK(IsPath,"Path Control", false)    
    GETN_BUTTON(Path, "File path", GetAppPath())
    if( GetNBox(testTree,"Test Check and Button","Test Check...", NULL, NULL) )
        out_tree( testTree );
}

See Also

GETN_BOX, GETN_USE, GETN_OPTION_MANUAL_RESIZE

header to Include

GetNbox.h

Reference