GETN_FONT

 

Name

GETN_FONT

Declaration

#define GETN_FONT(_NODE_NAME, _NODE_LABEL, _DEFAULT_VAL) _tmpSubNode = _tmpNode.AddNumericNode(_DEFAULT_VAL, #_NODE_NAME, ONODETYPE_DROPLIST_FONTS);TREE_ADD_LABEL(_NODE_LABEL);

Remark

This macro creates a font combo list in the dialogbox.

Parameters

_NODE_NAME
[input] the name of the new node to be added to the tree
_NODE_LABEL
[input] the string value to show as the node label in the dialogbox
_DEFAULT_VAL
[input] default showing font.

Return

Examples

EX1

void GETN_FONT_Ex1(int nIndex)
{
    GETN_TREE(testTree)
    GETN_FONT(Face, "face", FontFaceIndex_to_DWORD(nIndex))        
    if(GetNBox(testTree))
        out_tree(testTree);
}

header to Included

GetNBox.h

Reference