2.3.1.66 GETN_OPTION_GROUP_BRANCH


Name

GETN_OPTION_GROUP_BRANCH

Declaration

#define GETN_OPTION_GROUP_BRANCH(_DWOPTN)	_strTemp = _DWOPTN; _tmpSubNode.SetAttribute(STR_ATTRIB_BRANCH, _strTemp);

Remark

Add options to the branch.

Parameters

_DWOPTN
[input] set the branch option.It should be one of the following macros
GETNBRANCH_OPEN -- to show the branch as open
GETNBRANCH_KEEP_SIZE_ON_COLLAPSE -- to keep dialog size when branch is closed
GETNBRANCH_KEEP_SIZE_ON_EXPAND -- to keep dialog size when branch is open, this may lead to a scroll bar

Return

Examples

EX1

#include <GetNbox.h>
void GETN_OPTION_GROUP_BRANCH_ex1()
{
    GETN_TREE(trTemp)
    GETN_BEGIN_BRANCH(Range, "Intensity Range 1")
        GETN_OPTION_GROUP_BRANCH(GETNBRANCH_OPEN) //open the branch, on showing
        GETN_SLIDEREDIT(min, "From", 0, "0|255|255")
        GETN_SLIDEREDIT(max, "To", 255, "0|255|255")
    GETN_END_BRANCH(Range)
    if( GetNBox( trTemp ))
        out_tree( trTemp );
}

See Also

Header to Include

GetNbox.h

Reference