GETN_MULTI_COLS_BRANCH

 

Name

GETN_MULTI_COLS_BRANCH

Declaration

#define GETN_MULTI_COLS_BRANCH(_NCOLS, _GAP)              {DWORD __dwTemp = _GAP; DYNA_SET_NUMCOLS(__dwTemp, _NCOLS); _strTemp = __dwTemp; _tmpSubNode.SetAttribute(STR_ATTRIB_MULTI_COLS, _strTemp);}

Remark

Allow multiple controls in one row.

Parameters

_NCOLS
[input] Number of control columns.
_GAP
[input]

set the branch option.It should be one of the following macros

DYNA_MULTI_COLS_LOCAL_WIDTH -- to arrange the controls one right after another, and not to subdivide the overall dialog width evenly
DYNA_MULTI_COLS_BY_COLUMN -- to arrange the controls vertically first
DYNA_MULTI_COLS_COMAPCT -- compact column width

Return

Examples

EX1

#include <GetNbox.h>
void GETN_MULTI_COLS_BRANCH_ex(int nVerticalFirst=0)
{
        DWORD dwMultiCols = DYNA_MULTI_COLS_LOCAL_WIDTH|3;// factor of 3 times the lable-control gap
        if(nVerticalFirst)
                dwMultiCols |= DYNA_MULTI_COLS_BY_COLUMN;
        
        GETN_TREE(testTree)
    GETN_BEGIN_BRANCH(Start, "Fitting Options ++++++++++++++++++++++++++++++++") 
    GETN_MULTI_COLS_BRANCH(2, dwMultiCols)
                GETN_OPTION_BRANCH(GETNBRANCH_OPEN)
                GETN_STR(from, "From", "0")     GETN_EDITOR_SIZE_USER_OPTION("#3") 
                GETN_STR(to, "To", "1") GETN_EDITOR_SIZE_USER_OPTION("#3")
                
                GETN_STR(read,"Read", "1") GETN_EDITOR_SIZE_USER_OPTION("#5")
                GETN_STR(skip,"Skip", "0") GETN_EDITOR_SIZE_USER_OPTION("#5")
    GETN_END_BRANCH(Start)    //Match GETN_BEGIN_BRANCH
    if(GetNBox(testTree, NULL, NULL, NULL, NULL))
        out_tree(testTree);
}

See Also

GETN_PAD, GETN_ADDITIONAL_TAB

header to Include

GetNbox.h

Reference