GETN_PAD

 

Name

GETN_PAD

Declaration

#define GETN_PAD(_NODE_NAME) GETN_STR(_NODE_NAME,"","") GETN_SHOW(FALSE);

Remark

Create a dummy variable. Use this macro with GETN_MULTI_COLS_BRANCH to support uneven arrangement for multiple controls.

Parameters

_NODE_NAME
[input] the name of the new node to be added to the tree

Return

Examples

EX1

#include <GetNBox.h>

static int _event_func_ex(TreeNode& tr, int nRow, int nEvent, DWORD& dwEnables, LPCSTR lpcszNodeName, WndContainer& getNContainer, string& strAux, string& strErrMsg)
{
    if(lstrcmpi(lpcszNodeName, "cond1") == 0)
    {
                tr.trBranch.val12.Show = tr.trBranch.cond1.nVal == 2;//between
    }

    return true;
}

void GETN_PAD_ex()
{
        GETN_BOX( treeTest );
    GETN_BEGIN_BRANCH(trBranch,"condition") 
    GETN_MULTI_COLS_BRANCH(2, DYNA_MULTI_COLS_COMAPCT) 
    GETN_OPTION_BRANCH(GETNBRANCH_OPEN)
                GETN_LIST(cond1, _L("Condition 1"), 2, "greater than|less than|between")
                GETN_PAD(dummy)
                GETN_NUM(val11, "", 1)    
                GETN_NUM(val12, _L("and"), 10)  
        GETN_END_BRANCH(trBranch)
    if( GetNBox( treeTest, _event_func_ex ))
        out_tree( treeTest );
}

See Also

GETN_MULTI_COLS_BRANCH, GETN_ADDITIONAL_TAB
GETN_GAP

header to Include

GetNbox.h

Reference